Selaa lähdekoodia

Graph :
- 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.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4453 a333f486-631f-4898-b8df-5754b55c2be0

glajarige 8 vuotta sitten
vanhempi
commit
a1a5c48390
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      application/displayblock.class.inc.php

+ 7 - 0
application/displayblock.class.inc.php

@@ -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: {