I have problem where I have a lot of x-axis values. So can I can show all of
them but on the x-axis just show the start and end value? Any idea how to do
it via phplot? Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I understand correctly, you are seeing too many labels on the X axis. Are
these tick labels or data labels? (Tick labels are generated automatically
based on the range of your data values. Data labels are copied from your data
array - the first position in each row array.)
If you are seeing too many tick labels along the X axis, you can adjust the
interval with SetXTickIncrement() or SetNumXTicks(), possibly along with other
functions to control the start tick value.
If you are seeing too many data labels, you need to adjust your data array
because PHPlot draws every data label. You will have to delete (replace with
empty string) the label positions that you don't want drawn. You may be able
to use the sample function in contrib/prune_labels.php inside the PHPlot
distribution to do this for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear All,
I have problem where I have a lot of x-axis values. So can I can show all of
them but on the x-axis just show the start and end value? Any idea how to do
it via phplot? Thank you.
If I understand correctly, you are seeing too many labels on the X axis. Are
these tick labels or data labels? (Tick labels are generated automatically
based on the range of your data values. Data labels are copied from your data
array - the first position in each row array.)
If you are seeing too many tick labels along the X axis, you can adjust the
interval with SetXTickIncrement() or SetNumXTicks(), possibly along with other
functions to control the start tick value.
If you are seeing too many data labels, you need to adjust your data array
because PHPlot draws every data label. You will have to delete (replace with
empty string) the label positions that you don't want drawn. You may be able
to use the sample function in contrib/prune_labels.php inside the PHPlot
distribution to do this for you.