mahmud-hasan / ofcgwt

Automatically exported from code.google.com/p/ofcgwt
0 stars 0 forks source link

Axis attribute in the buildJSON Method is not defined in Element Abstract Class #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. try to use following code (modification of code from your demo):
In the following code, for the second ELEMENT, he has given "axis": "right"
But that's not working, since it is not in the buildJSON method.
Please implement it!
In the OFC-2 documentation, it is declared using method 
"attach_to_y_right_axis()"
(http://teethgrinder.co.uk/open-flash-chart/gallery-y-axis-4.php)

{"x_axis":{"colour":"#909090", "3d":8,
"labels":{"labels":["J","F","M","A","M","J","J","A","S","O","N","D"]}},
"y_axis":{"steps":16, "max":160, "min":0},
"y_axis_right":{"grid-colour":"#000000","steps":16, "max":1600, "min":0},
"y_legend":{"text":"$M in Sales", "style":"font-size: 11px;"},
"y2_legend":{"text":"$B in Sales", "style":"font-size: 11px;"},
"x_legend":{"text":"2008/9 Financial Year", "style":"font-size: 11px;"},
"bg_colour":"#ffffff", "elements":[{"type":"bar_3d",
"values":[55,91,56,1167,57,50,86,58,58,65,94,98], "on-show":{"type":""},
"barwidth":0.5, "colour":"#ff8800"},{"type":"line",
"values":[6,2,3,90,2,8,0,7,100,3,7,7], "on-show":{"type":""},
"text":"Global Avg", "colour":"#000000", "axis":"right",
"dot-style":{"type":"solid-dot"}}]}

Original issue reported on code.google.com by chidambar.181@gmail.com on 22 Dec 2010 at 2:29

GoogleCodeExporter commented 9 years ago
Please change the priority to HIGH

Original comment by chidambar.181@gmail.com on 22 Dec 2010 at 2:30

GoogleCodeExporter commented 9 years ago
How to assign one of the many data lines to the RIGHT Y-AXIS in JSON....

Original comment by chidambar.181@gmail.com on 23 Dec 2010 at 7:18

GoogleCodeExporter commented 9 years ago
Please tell me the exact "Name -value" pair for assiging a data line to Y-Right 
axis

Original comment by chidambar.181@gmail.com on 25 Dec 2010 at 11:04