Make the empty space on X-axis longer

Hi,

I have recently encountered another problem that needs to have the x-axis to have more empty space on the left side(not padding, the space is needs to be part of the graph)

For example, I have line graph A and line graph B. Both graph should start on the same date and end on the same date so that we can compare them. However, the data for graph A starts on March and ends Dec. Graph B starts from January and ends on Dec. How do I make graph A to start on January and the line trace on graph A will start on March. I need to graph A to start from Jan to Dec, but the line will only start from March because there is no data from Jan to April.

Thank You

You can use

  • either custom axis like in the sample for bar chart:
    dhtmlxChart/samples/06_bar_chart/12_custom_axis.html
  • or series - see attached demo
  • or add items without values to the datasource
    chart.zip (91.7 KB)