Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
This depends on the chart type, for ChartJS, select the ChartJS view and edit a custom template and add min, max and stepSize: Code: yAxes: [
{
id: 'yaxis-1',
display: true,
stacked: false,
scaleLabel: {
display: true,
labelString: 'y title'
},
ticks: {
min:50,
max:200,
stepSize:5,
callback: function (label, index, labels) {
if (false) return d3.timeFormat(',.0f')(new Date(label));
return d3.format(',.0f')(label).valueFormat();
}
}
},
as explained in https://www.chartjs.org/...es/cartesian/linear.htmlIt is different for NVD3 or Plotly: Code: xaxis: {
range:[50,200],
title: 'x title',
tickformat: ',.0f',
},
yaxis: {
range:[500,5000],
title: 'y title',
tickformat: ',.0f',
},
These options will be standard in the incoming 5.5 version (RC published soon...)
|