Hello
I have my created image , unfortunately overlap down the names , how can I let down the names schaun or rotate the name ?
best regards
<?# PHPlot Example: Bar chart, 3 data sets, unshadedrequire_once'phplot.php';$data=array(array('Vorname Nachname',0,1),);$plot=newPHPlot(1000,550);$plot->SetImageBorderType('plain');$plot->SetPlotType('stackedbars');$plot->SetDataType('text-data');$plot->SetDataValues($data);$plot->SetTitle('Candy Sales by Month and Product');$plot->SetYTitle('Millions of Units');$plot->SetLegend(array('Einsätze','Übungen'));$plot->SetXTickLabelPos('none');$plot->SetXTickPos('none');$plot->DrawGraph();?>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I tried your script I do not see any overlap of text. I see a title at the top, X and Y axis titles, and 2 lines in the legend. Is that the whole script? Is there perhaps more data?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK now it makes sense.
Add this anywhere after 'new PHPlot' and before 'DrawGraph':
$plot->SetXLabelAngle(90);
Note that since you are using GD (fixed-font) text, your only choices for label angle are 0 or 90 degrees. If you switch to TrueType fonts, you can use any angle.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I have my created image , unfortunately overlap down the names , how can I let down the names schaun or rotate the name ?
best regards
Hi, I tried your script I do not see any overlap of text. I see a title at the top, X and Y axis titles, and 2 lines in the legend. Is that the whole script? Is there perhaps more data?
Hello
No there are about 42 entries
Friendly Greets
Last edit: austria 2016-01-25
OK now it makes sense.
Add this anywhere after 'new PHPlot' and before 'DrawGraph':
Note that since you are using GD (fixed-font) text, your only choices for label angle are 0 or 90 degrees. If you switch to TrueType fonts, you can use any angle.
Thank you very much :-)
Last edit: austria 2016-01-26