Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16420

Changing xAxis Label to Month on AmCharts Bubble Pie Charts

$
0
0

According to this bubble pie chart from AmChartshttps://www.amcharts.com/demos/bubble-chart-with-pie-bullets/how to change the xAxis lable to month, something like 'jan', 'feb', 'mar', etc...

I'm trying to change this line

  let xAxis = chart.xAxes.push(  am5xy.ValueAxis.new(root, {    renderer: am5xy.AxisRendererX.new(root, { minGridDistance: 50 }),    tooltip: am5.Tooltip.new(root, {}),  }));

to

 let xAxis = chart.xAxes.push(      am5xy.CategoryAxis.new(root, {        renderer: am5xy.AxisRendererX.new(root, { minGridDistance: 50 }),        tooltip: am5.Tooltip.new(root, {}),      })    );  // Set months for X-axis  xAxis.data.setAll([  { category: "Jan" },  { category: "Feb" },  { category: "Mar" },  { category: "Apr" },]);

But, the bubble pie-charts are gone..


Viewing all articles
Browse latest Browse all 16420

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>