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

Comments

zzemm’s picture

Project: Views Charts » Open Flash Chart API
Version: 6.x-1.0-alpha1 » 6.x-2.1
redndahead’s picture

Looks like this will work for v2

$x = new x_axis();
$x->set_vertical()

irakli’s picture

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.

zzemm’s picture

redndahead, thanks. sorry not to mention by I am using v1, cause v2 is not properly work with Views Chart.

zzemm’s picture

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

redndahead’s picture

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.

zzemm’s picture

Status: Active » Fixed

redndahead, thanks
finally I found out solutions:

$x->labels->rotate="vertical";

zzemm’s picture

Status: Fixed » Closed (fixed)