how to use orientation in open flash charts
zzemm - June 4, 2009 - 10:42
| Project: | Open Flash Chart API |
| Version: | 6.x-2.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
hi
thanks for very useful module.
I am stack with one issue: how to use x_label_style to make x_label vertical?
I tried various lines (put in charts.openflash.class.inc):
$this->x_legend->style = "{color: #736AFF; font-size: 12px;}";
$this->x_label_style = "font-size: 30; color: #736AFF; orientation:1; step:1; grid_color=#736AFF;";
and a lot of more... but x_labels still horizontal...
any help aprecciated...

#1
#2
Looks like this will work for v2
$x = new x_axis();
$x->set_vertical()
#3
These kind of things are tricky. Since Open Flash Charts is a generic charting tool, its main API can only implement a lowest-common-denominator functionality of all charting tools it implements. This creates all kinds of problems when people need specific things.
My current thinking is to at some point, in the workflow, expose the actual implementation object to the developer so they can set some other settings for specific implementations, if they really need to.
Have not really figured out this fully, yet, though.
Sorry.
#4
redndahead, thanks. sorry not to mention by I am using v1, cause v2 is not properly work with Views Chart.
#5
irakli, I partially agree with you, although OFC is a generic, the opportunity to set up x_labels vertical - describing in documentation as fully supported feature.
Of course, this problem could not apply to OFP module developers, because collaborations with other module, such as Views Chart - is not their main priority, imho
#6
For v1 have a look here: http://teethgrinder.co.uk/open-flash-chart/gallery-x-axis-2.php
It shows different ways to orient the x axis.
#7
redndahead, thanks
finally I found out solutions:
$x->labels->rotate="vertical";
#8