Как установить fixedColumnWidth на диаграмме, созданной с помощью am4core.create? - PullRequest
0 голосов
/ 04 мая 2020

У меня есть следующий код:

var chart = am4core.create('chartdiv', am4charts.XYChart)

chart.colors.step = 2;

//chart.fixedColumnWidth=80;
chart.legend = new am4charts.Legend()
chart.legend.position = 'top'
chart.legend.paddingBottom = 20
chart.legend.labels.template.maxWidth = 95



var xAxis = chart.xAxes.push(new am4charts.CategoryAxis())
xAxis.dataFields.category = 'category'
//xAxis.renderer.cellStartLocation = 0.1
//xAxis.renderer.cellEndLocation = 0.9
xAxis.renderer.grid.template.location = 0;

var yAxis = chart.yAxes.push(new am4charts.ValueAxis());

Как я могу установить fixedColumnWidth на этом графике, чтобы все столбцы / столбцы имели фиксированную ширину?

...