We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

JQuery error when line graph has only one point

In one particular scenario, the data returned from the back end
has only one record. hence only one point on a line graph. I assumed that
no line would be drawn, and I will only see a point. But I get this error.


Can line graphs not have only one point?

7 Replies

GS Gowrimathi S Syncfusion Team September 27, 2013 11:52 AM UTC

Hi Pradeep,

Thanks for sharing detail with us.

We have tested the reported issues based on the screenshot. We are able to reproduce the issue. We fixed the issue and this fix will be included in version 1 of JS Essential studio release.

Please let us know, if you have any further assistance.



PR Pradeep October 3, 2013 05:49 AM UTC

I would like to add that the same error occurs on the bar graph as well.
If there is only one point. The graph does not render.

PR Pradeep October 3, 2013 06:46 AM UTC

Just to know when will the next release be!!!?

GS Gowrimathi S Syncfusion Team October 3, 2013 10:14 AM UTC

Hi Pradeep,

Thanks for your updates, the next Essential JS release will be in the mid of December.

Gowrimathi S

PR Pradeep October 8, 2013 07:08 AM UTC

I know you guys are putting max effort in this, and I am ver pleased with the amount
of support you've been providing me, but is there no possibility to fix this before that??!.

How is it possible to use the graph in any application, when data
set for a bar graph having only one point is a very real scenario,
which would occur often.!!!!

PR Pradeep October 9, 2013 07:13 AM UTC

OK a quick fix to this on the bar graph is to add an extra point
with x:"", y:"0"
. This makes the graph think there
are 2 points, but the 2nd point will not be visible as it is 0, and the label
is empty. cheers

GS Gowrimathi S Syncfusion Team October 10, 2013 09:41 AM UTC

Hi Pradeep


Thanks for sharing the information with us. Sorry for the inconvenience caused, we have fixed the issue and this fix will be included in next Essential JS release.



Gowrimathi S

Live Chat Icon For mobile
Up arrow icon