yui / yui3

A library for building richly interactive web applications.
http://yuilibrary.com/
Other
4.12k stars 1.28k forks source link

Charts - Gantt chart #849

Open tripp opened 11 years ago

tripp commented 11 years ago

Gantt graph in charts.

sudocode commented 11 years ago

Labels next to bars appear to persist between refreshes.

screen shot 2013-06-21 at 3 36 46 pm

http://sidelieshape.corp.yahoo.com/gantt/src/charts/tests/manual/ganttseries.html

tripp commented 11 years ago

Since I added the label generation to the series. You'll need to remove the one-off patch from your app page.

itemLabels = ganttUtils.addItemLabels(mychart.getSeries(0), Y.ClassNameManager.getClassName("charts-ganttseriesItemLabel"), 2);

Sorry, I had forgot to mention that. Ping back if you're still seeing issues.

sudocode commented 11 years ago

screen shot 2013-07-08 at 3 18 58 pm

Bars with a length of 0-1 render a bit strangely. Would it be possible to make such bars show up as a dot instead? Here is an example:

screen shot 2013-07-08 at 3 18 58 pm

Thanks

tripp commented 11 years ago

Yeah, I'll update the shape to draw an ellipse when it's size drops below a certain threshold.