Comments (5)
As of version 2.0 this now draws ok, but it treats null as zero. The way I see it we can either :
- treat as zero
- ignore it so the line goes straight between the points on either side
- break the line in 2 pieces
I'm not crazy about the last option as it would look bad where a single point is left behind. I'd probably vote for option 2 (even though option 1 means no work!).
I'm interested to get anybody else's thoughts on this?
from dimple.
All of the three behaviors are valid on some use cases, but
- to achieve 1, you pass a zero
- to achieve 2, you don't pass that point
- to achieve 3, you pass a null - and hope the library does its job
I vote for 3, that's sometimes very useful.
e.g. when data is like (100, 150, unknown, unknown, unknown, unknown, unknown, 200, 150). Yes, that happens.
from dimple.
i agree with sarcidiacono. Infact, i think there should be an option that allows you to decide how you want nulls to be treated. Right now i'm looking for a way to print dates on the x-axis, but no value. the use case i'm struggling with is that a page has two charts, and i want the dates of the two to be the same..even if no data exist for one of the time-series. Another use-case: data-integrity checks - i want users to see gaps in data if they are the master of those data.
from dimple.
I have a suggestion - at least for a bar chart. Let's say we've measured 50 different branches, and got a score for each of them. Some branches scored 0. One branch didn't return their data. So... how can we represent the latter? We could remove the bar entirely, but I think there is a case for explicitly drawing a representation of "this branch failed to submit a value".
At the moment, dimple does the "least surprise" approach and treats the null as a zero when drawing the bar height.
I suggest re-formatting the bar label (probably as a strikethrough), and adding the word "NULL" into the tooltip where it currently shows the value of 0. Is there a neat way to do this?
from dimple.
With a bar chart, a zero-height bar is at least invisible. But with a bubble, the bubble is now shown as zero. Worse, the tool-tip shows that the value is "0", when it should actually say "null".
from dimple.
Related Issues (20)
- getComputedTextLength and getBbox not working on dimple node
- Cannot get y-axis to look like the standard graph
- dimple js not ploting the bar graph
- Wish: ability to draw threshold lines HOT 2
- Documentation: clarify how to use multiple independent variables
- Request: a chart title method
- assignColor can't accept a color object HOT 1
- dimple.plot.pie documentation is inconsistent HOT 2
- Fill in plot holes with a solid color for line chart.
- Best strategy for showing very long legends? HOT 2
- Line marker shapes for line chart
- Dimple seems to be broken with D3 v5.
- Not really an issue - more of a feature request/clarification?
- Running examples locally
- Multiple tooltips HOT 1
- Sorting by numeric field strangely causes sort by month
- Markers should be drawn after areas so z-order doesn't make tool tips inaccessible
- Horizontal scrolling in bar chart
- d3 version 7.8.0 support HOT 1
- Legend value overlap issue
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 dimple.