Login Register

Chart in IE

While I'm at it...the Chart widget is working in full right now in Internet Explorer: check it out. While there's some major refactoring going on with it right now, it should remain stable enough for use in the following browsers: Firefox 1.5+, Opera 9+ and Internet Explorer 5.5+/Win. Current chart types include line, bar (series), area (added today, will be there tomorrow), scatter, and bubble. The only known issue is with Opera 9 and the bubble chart (apparently it doesn't like some attributes). In the very near future, the data model underlying Chart will be rewritten to use the new SimpleStore class created for the FilteringTable widget, also recently added. Near future meaning the next few days. As with the last post, I should ask: are there any requests for specific chart types? Feel free to leave comments!

These look great! My

These look great! My feedback is mostly questions: Does area include pie charts? Can bar charts be aligned horizontally? Is it as easy to hook up menus/links/tooltips to points on the charts as I assume it to be? I ran into JS prompting for more time to process a potentially "unresponsive" script on my low end Mac mini funning FF1.5 btw...

Answers: 1. No. Because

Answers: 1. No. Because pie charts have a different plotting algorithm, they will have to be a separate widget. I'm planning on trying to sneak them in under the wire for 0.4 though, we'll see what happens. 2. Not as currently implemented, but I'm also planning on trying to get in a horizontal bar chart plotter. 3. Ah. No, that's not something I considered yet. But now that you mention it, I might try to (at least) see if there is a way of getting a link on each series plot, if needed. Have to think about it. You should be able to iterate on the series after the render though and hook things up if you need to; I'll see if I can make sure that's easy to do.

Oh, and you probably got the

Oh, and you probably got the unresponsive script because the current test is trying to use the debugAtAllCosts option; the post with tonight's nightly removes that (Opera 9 doesn't like it for some reason).

Nice! Just a few questions

Nice! Just a few questions : Would it be easy to edit charts on the fly? Maybe with dojo.bind? Is there a way do display the values? Keep rocking!

One of the goals I have with

One of the goals I have with this round of revisions is to make it very easy to edit a chart on the fly, in the same way that you can edit FilteringTable on the fly--by altering values in the underlying store (not implemented yet, couple of days at most) and having the chart update automatically. And yes, there will be a way to do that with dojo.io.bind, if you're thinking about realtime viewing...

Tom, Hats off to you, they

Tom, Hats off to you, they look great. Well done. Regards, Damian

Chart

Chart types: Line Bar Stacked Bar (vertical and horizontal) Pie Time series All the above with 'clickable' regions, e.g. ability to click on a section of pie/stacked bar and fire an event:-)

Andy-- Line and bar are

Andy-- Line and bar are already available (as I said in the post). Want to provide an example of Time Series?

Hi Tom,it would be nice too

Hi Tom,it would be nice too to have the possibility of mixing two types of chart types, like Line and Bar or Line and Area. A chart with two y scales would be great too. Also, i agree with Andy that mouse events would rock,especially in nodes from the line chart and maybe the user could drag these nodes, for editing the values of the chart. Wish that this could help you with some ideas.

Diego, The current chart

Diego, The current chart widget was designed to do combination charts from the ground up by keeping the plotters separate from the actual widget; the chart test demonstrates that by combining bar, line, scatter and bubble--all on the same plot area.

These are really neat ...

These are really neat ... the thing I would like to see the most is the ability to bind events to indivdual points on a graph (onMouseOver, onClick, etc) This would make tooltips and a handful of other really useful features available. Also, are there any plans for rubber band zooming? Great work!

I'll second the ability to

I'll second the ability to click on data point (region) in a plot. So, click on a point and then fire an event to zoom to a point in the filtering table. How robust is this widget to large amounts of data? i.e What would be considered too many points on a scatter plot? I have large amounts of time series data...so I'm assuming a png from gnuplot may be my only option(?)

The line chart takes

The line chart takes 'rangeX' as a string with min and maximum, but is it possible for specifying the intervals? For example, 0, 20,40,60,80,100 on the x axis... similarly for the Y-axis?

Time series is just a

Time series is just a specialised form of line I guess. Basically I'm thinking of what JFreeChart does with time series. It is a 2D dataset plotted against a time period (ususally on the X-axis) - kinda like google does in Flash for stock price graphs. Currently, we generate JFreeChart on teh server and heavily use their IMAGEMAP stuff to allow chart to chart navigation.

Andy, I see...at some point

Andy, I see...at some point I'm looking to do a set of financial charts, including a full-on analytical one (best examples I can think of are in the business section of the NY Times, and here: http://www.softwarefx.com/sfxgallery/chartdetail.aspx?charttype=8&curren... But then I see where you would want price and volume on the same chart. I'll see what I can do. I don't know that that will make it into 0.4 but I will defintely go there at some point. Gurudeva, yes, I'm planning on making that an option. Part of the issue is how many axis points you label; it's very difficult to figure out the overrun between text labels. Matt, in theory you *should* be able to grab a reference to the Data Group node of any chart and loop on it's children to attach handlers to them, but I can see that one might want access to that via the actual series or whatnot. I'll see what I can do to facilitate that, also won't guarantee it for 0.4. Jeremy: not sure about the zooming as a 0.4 feature; I need to see if FF and Opera are actually supporting that part of the spec yet. I *think* you can pull it in VML with a simple CSS "zoom" parameter but that's IE only. The key is to zoom only part of the chart, and figure out the best way to control it...I'd definitely call that an advanced feature and it may take a much different form (for instance, we might want to implement it so that you clicked and dragged to define a zoom region, and that would cause a tooltip-type of floating window to come up with just the zoomed area, etc.). I'll give it some thought.

documentation of all the

documentation of all the features would be nice toolkit without docu is like no toolkit at all

Alex, http://dojotoolkit.org

The IE version looks nice.

The IE version looks nice. Any idea when it will be released in an official release? IE support for my particular customer is a requirement but if you can tell me that IE support is coming I'll risk it and start with your chart code immediately. (I had a bad time trying to integrate the WebFX chart code. It never seemed to work the same way two runs in a row and it seemed to break the debugger somehow.) My idea is to have a sortable table of data points under the graph, which is a time series line graph. I'll scale using min/max in the data and only show the most recent 20 data points. Using one slider I'll let the user scroll back in time. Using another slider I'll let them increase or decrease the number of data points shown. I did all this in an earlier incarnation cycle and I would be happy to share it. Of course if there was a widget that did this I'd be happy to use it.

Nice work Tom, Dojo's

Nice work Tom, Dojo's charting engine looks pretty good. 2 questions: 1. Is there any way to force IE to use SVG through a plugin? 2. Is there any way to get the generated SVG content? Would be useful to send back to server and rasterize/convert/save/etc Regards Patrick

Hello, Tom. How can I add

Hello, Tom. How can I add tooltips to the chart nodes? Or it is impossible without writing my own widget? You said: "3. Ah. No, that’s not something I considered yet. But now that you mention it, I might try to (at least) see if there is a way of getting a link on each series plot, if needed. Have to think about it. You should be able to iterate on the series after the render though and hook things up if you need to; I’ll see if I can make sure that’s easy to do." I googled for ready solution, but didn't find. Best Regards, Volk