Welcome Guest Search | Active Topics |

Unwanted axes
BBocian
#1 Posted : Tuesday, June 17, 2014 7:38:08 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/29/2014(UTC)
Posts: 4

Thanks: 0 times
Was thanked: 1 time(s) in 1 post(s)
Hi,

I am inserting a lot of data inside a chart, some of the series are empty or have only single point and i can't check what series is currently added. Some of the series generate additional X axes that i don't want. Do you have any idea what generates them ?

Dragan
#2 Posted : Tuesday, June 17, 2014 7:41:44 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Is it possible to send us your code ( support@jqchart.com ), so we can check it?
Best Regards,
Dragan Matek
jqChart Inc.
BBocian
#3 Posted : Wednesday, June 18, 2014 2:08:08 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/29/2014(UTC)
Posts: 4

Thanks: 0 times
Was thanked: 1 time(s) in 1 post(s)
I got it on my own, in few series i was adding Points like [null, Y] or [X, null] from the data i was getting and this was causing it
1 user thanked BBocian for this useful post.
gerrit on 11/16/2014(UTC)
gerrit
#4 Posted : Sunday, November 16, 2014 8:00:46 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/1/2014(UTC)
Posts: 5
Man

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Thanks a lot for this post! But I consider this to be a bug of jqCharts that unwanted axes spring into existence, whenever it is fed with sparse arrays. Having to do something like the following looks like a workaround to me:

Code:

for (var i = 0; i < array1.length; i++) {
  for (var j = 0; j < array2.length; j++) {
    if (typeof(array1array2[i])=='undefined') array1array2[i] = new Array();
    if (typeof(array1array2[i][j])=='undefined') array1array2[i][j] = 0;
  }
}
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.099 seconds.