Home forums Report Bugs Draw issue on line chart with empty data

This topic contains 3 replies, has 3 voices, and was last updated by  jarode 8 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9952

    Framnk
    Member

    Hi,

    I would like to represent a chart that is initially blank with axis lines but will redraw once data is received from the server. If I attempt to create the chart with an empty data array, you will see there is a bit of a draw issue on the y-axis. At the top of the y-axis there is a ‘0’ which is partially cut off. If I omit the data points altogether it simply encounters a javascript error. Is there a way I can represent a chart with axis before data starts arriving from the server?

    JSFiddle: http://jsfiddle.net/bc00gav2/2/

    #9953

    Sanjoy
    Moderator

    Framnk,

    Thanks for reporting, it’s a known issue. Here is a workaround.

    #9955

    jarode
    Member

    I don’t think this is a great way to resolve this problem.
    it will be nice if we write ‘NO DATA’ or something else in the graph.

    #9957

    jarode
    Member

    I’ve made an update to an existing code here : resolved problem

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.