Chartjs-Ng2-Chart: can we show the tooltip data of pie chart on load?

0👍

found a plugin to do so :https://emn178.github.io/chartjs-plugin-labels/samples/demo/

public chartOptions: any = {
        responsive: true,
        plugins: {
          labels: [
            {
              render: 'label',
              arc: true,
              fontSize: 14,
              fontStyle: 'bold',
              fontColor: '#000',
              position: 'outside'
            },
            {
              render: 'value',
              fontSize: 14,
              fontStyle: 'bold',
              fontColor: '#000',
              fontFamily: '"Lucida Console", Monaco, monospace'
            }
          ]
        },
      };

Leave a comment