- Bar chart labels on x axis are now displayed vertically like in iTop 2.2. Also, when there are more than 24 labels, not all of them are displayed in order to keep the axis readable.
- Pie chart legend is now placed on the right side.

SVN:trunk[4453]
This commit is contained in:
Guillaume Lajarige
2016-10-10 13:14:13 +00:00
parent 59e3367da8
commit 1c81650572

View File

@@ -1015,6 +1015,12 @@ var chart = c3.generate({
},
axis: {
x: {
tick: {
culling: {max: 25}, // Maximum 24 labels on x axis (2 years).
centered: true,
rotate: 90,
multiline: false
},
type: 'category' // this needed to load string x value
}
},
@@ -1066,6 +1072,7 @@ var chart = c3.generate({
},
legend: {
show: true,
position: 'right',
},
tooltip: {
format: {