-
Notifications
You must be signed in to change notification settings - Fork 326
features axes
강지웅/FE개발팀/NE edited this page Feb 24, 2016
·
9 revisions
- This section introduces about feature of axes.
Using title options(yAxis.title, xAxis.title), you can set about each title of axes.
//...
var options = {
yAxis: {
title: 'Y Axis Title'
},
xAxis: {
title: 'X Axis Title'
}
};
tui.chart.barChart(container, data, options);
X axis is value type at only bar chart, but Y axis is value type at column, line, area, combo chart.
Using xAxis.min
, xAxis.max
options, you can set about minimum or maximum value of X axis.
These options are available only in the bar chart.
//...
var options = {
xAxis: {
min: 0,
max: 1000
}
};
tui.chart.barChart(container, data, options);
Using yAxis.min
, yAxis.max
options, you can set about minimum or maximum value of Y axis.
These options are available in the column , line, area , combo chart.
//...
var options = {
yAxis: {
min: 0,
max: 1000
}
};
tui.chart.columnChart(container, data, options);
If you set 'center' to series.align option, you can display a legend label to each center of a piece of the pie graph.
Using xAxis.labelInterval
option, you can display the axis label sparsely.
This option is available in the column , line, area , combo chart.
//...
var options = {
xAxis: {
labelInterval: 2
}
};
tui.chart.columnChart(container, data, options);
- Chart Guide