TeeChart php for HTML5 Builder. How to customize the x-axis -
i'm using embarcadero's html5 builder (php) , teechart draw graphs. great tool parts teechart documentation html5 builder php extremely thin, nonexisting need guess lot.
now, need way format x-axis in teechart line graph has 2 series of data. both series shares same y , x-axis.the x-axis in case should text, not numbers. now, default x-axis numbered 1,2,3... isn't workable in situations.
to format teechart's y-axis easy; following code it:
$this->chart1->axes->left->automatic = false; $this->chart1->axes->left->minimum = 16; $this->chart1->axes->left->maximum = 28;
one think same logic apply bottom axis, i.e.
$this->chart1->axes->bottom->minimum = etc...
but not so. you'll runtime error trying manouver.
someone out there knows how teechart php html5 builder draw x-axis want appear?
i've taken source code this demo (index page here) , i've added @ end of page, before render
call:
$chart1->axes->bottom->automatic = false; $chart1->axes->bottom->minimum = -1; $chart1->axes->bottom->maximum = 11; $chart1->axes->top->automatic = false; $chart1->axes->top->minimum = -1; $chart1->axes->top->maximum = 11;
and seems work without problems:
Comments
Post a Comment