Comments (6)
We have just been working on this! Data sets are now not sorted by default, but the Line chart is still drawing the lines with largest average first. You can now turn this off by setting g.sorted_drawing = false
We are debating what should be the default for this setting. For some charts like Area, hight values hide low values if they are drawn later. For Line charts, we thought maybe lines with lower average are more interesting when they are sporadically high, therefore overwriting lines with a higher average.
Got any thoughts on the subject?
Anyway: Try the new g.sorted_drawing = false
setting and you should be able to control the order of the drawiing of the lines.
from gruff.
My first assumption was that the order of how I send my .data
messages would impact the order of how lines are drawn. Doesn't that sound as a good default? That feels natural to me at least.
I guess setting g.sorted_drawing = false
will do exactly what I described above, so I would suggest making false
the default value for at least Line charts.
If one would want sorting, one could enable that by setting it to true
. Another great companioning feature would be to be able to specify a sorting function explicitly.
from gruff.
You would like the first data set to be drawn "on top", right? That means drawing them in reverse order. I will think about that.
This is a good time for all to voice their opinions!
I am leaning towards not sorting line charts by default, and drawing them in reverse order to get the first data set on top.
from gruff.
By default I'd like to see data sets be rendered as they get called. If I set data for first
, second
and third
, I'd assume first
being rendered at the bottom, second
in the middle and third
at the front (on-top of the other lines).
Does that sound reasonable to you?
from gruff.
Done.
from gruff.
Awesome. Thanks a lot @donv.
from gruff.
Related Issues (20)
- how to update this gem dependency rmagic HOT 2
- rmagic depenency has to update , gem installation bug HOT 2
- stacked graph + group graph
- Release version 0.8.0 HOT 3
- Values on the left on bar HOT 1
- Empty data line graph throws undefined method exception HOT 1
- no decode delegate for this image format `' HOT 3
- labels above every dot
- legend_at_bottom = true puts the legend and the title in the graph area
- Documentation is offline HOT 2
- Make gruff thread-safe
- Single-Bar bar graph? HOT 2
- Non centred legend when some labels are blank
- no decode delegate for this image format
- Negative values in bar graph are hidden HOT 2
- Allow hiding nil group entries or allow simple bar chart color assignment HOT 3
- Can I get a graph with equal distances in both axis? HOT 1
- Moderator please delete - from a newbee
- Installing gruff gem in Ubuntu fails - problem solved HOT 1
- Bar chart transparent background HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gruff.