Welcome Guest Search | Active Topics |

Chart minimum size? (Pie)
bEEf732
#1 Posted : Thursday, August 30, 2012 10:27:53 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/30/2012(UTC)
Posts: 4

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hello!

First and foremost, great plugin! Will definitely be purchasing the full version soon as soon we our final product is ready...

However, I ran into a problem for the first time today where the jqChart code throws a DOM Exception: INDEX_SIZE_ERR (1) error.

I attempted to look through the minified code the best I could and realized that its thrown when it trys to draw the arcs because there simply is not enough room. However, this does not seem to be the problem with the column charts, which just get very tight and impossible to read when they are sized really really small, but thats fine, as long as no errors are thrown...

Would it be possible to do something about this in your code rather than just simply throwing an error? Maybe just displaying a "Chart area too small" in the chart area if it is unable to be drawn?

Once again, thanks for the great product. I'm excited that it will be used in our new product and look forward to working with you more in the future...

Regards
Dragan
#2 Posted : Thursday, August 30, 2012 10:43:57 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)
Hi,

Thank you for your kind words.

We’ve been able to reproduce this issue and we’will fix it. If you want I can send you a fixed version as soon as we’re ready.

I’m not sure if you check the CTP samples of our next version:

http://www.jqchart.com/beta/samples/

Let us know if you have any new feature suggestions.

Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
bEEf732 on 8/30/2012(UTC)
bEEf732
#3 Posted : Thursday, August 30, 2012 12:25:02 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/30/2012(UTC)
Posts: 4

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

Thanks for the great, quick support. I should have expected that from the dev team behind such a powerful plugin!

I would really appreciate it if you could send me that fixed version when you get to it...

Those beta samples look amazing. Target lines and animation are both big sellers for me, i'll let you know if I can think of any other features as I progress forward on this project.

Regards

EDIT:

Now that I think about it. The only main feature I can't seem to set up in jqChart that I feel should be present is the ability to have a more generic axis title. For example, I have a chart with one series of data:

Code:

{
  title: "One Series Chart",
  series: [{
    type: "pie",
    data: [["Category 1",400],["Category 1t",440],["Category 1",320],["Category 1",200],["Category 1",720],["Category 1",760],   
            ["Category 1",600],["Category 1",560]]
    }]
}


You've made it super easy to switch this chart type after initialization by just calling:

Code:

options.series[0].type = 'chartType'
chart.jqChart('update');


This allows me to change it to quite a few chart types, except for a few that have much different formatting for data. However, its difficult to implement axis changes alongside the chart changes. So the ability to supply axis labels in a series like:

Code:

series: [{
  type: "pie",
  data: [["Category 1",400],["Category 1t",440],["Category 1",320],["Category 1",200],["Category 1",720],["Category 1",760],   
          ["Category 1",600],["Category 1",560]],
  axisLabels: ["Category","Values"]
}]


Would be an awesome feature.

This may be completely unreasonable, but just something I thought of yesterday :)
Dragan
#4 Posted : Friday, August 31, 2012 6:50:03 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)
I sent you a fixed version via email.

I’m not sure I understand your question, but you can change the category axis labels with:

Code:
options.axes[0].categories = [‘Label 1’, ‘Label 2’];
chart.jqChart('update');


http://www.jqchart.com/samples/ChartAxes/CategoryAxis
Best Regards,
Dragan Matek
jqChart Inc.
bEEf732
#5 Posted : Friday, August 31, 2012 9:02:28 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/30/2012(UTC)
Posts: 4

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Thanks again for the fix.

The snippet you posted is exactly how i'm changing the axes now.

To clarify on my prior post:

My data is formatted like so:

Code:

data: [["Category 1",400],["Category 1t",440],["Category 1",320],["Category 1",200],["Category 1",720],["Category 1",760],   
            ["Category 1",600],["Category 1",560]]
    }]


This format works with quite a few different chart types:

Area, Bar, Column, Line, Pie, Radar Area, Radar Line, Radar Spline Area, Radar Spline, Spline Area, Spline, Stacked Bar, Stacked Column

However, in order to use axes titles with this data, I have to look at the current chart type, then set the axes titles to the type required for that chart.

So my idea was if it was possible to have a generic set of axis titles supplied with the series that will automatically format for all chart types, rather than having to set category, linear, dateTime, categoryAngle, and linearRadius axes types depeneding on the chart.

Obviously, more detailed axis options would still have to be done as they are now in the axes options but I thought for something generic like axes titles, it would be nice to just supply it with the series and have it done behind the scenes...

I feel like this could be either very easy or very difficult depending on your code structure but would be a nice, simple option to have.
Dragan
#6 Posted : Friday, August 31, 2012 2:19:30 PM(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)
Now I got it.

Yes, it is a bit no so nicely, that the users should care about what type and location of the axis they should set.

With collection of axis we’re providing an ability to the users to create any axes they want, but it seems that we’ve missed some of the usability.

We’ll think about how we can improve this.
Best Regards,
Dragan Matek
jqChart Inc.
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.135 seconds.