Comments (15)
It's almost certainly going to be the next feature I add, I'm currently just investigating the implications for different chart types but the plan is to have the ability to define axes as follows:
...
var monthAxis = myChart.addCategoryAxis("x", "month");
var taxAxis = myChart.addMeasureAxis("y", "tax");
// NB the next two have an axis object passed to the position parameter rather than a string
var subTotalAxis = myChart.addMeasureAxis(taxAxis, "subtotal");
var totalAxis = myChart.addMeasureAxis(taxAxis, "total");
// Add series
myChart.addSeries("Tax", dimple.plot.line, [monthAxis, taxAxis]);
myChart.addSeries("Subtotal", dimple.plot.line, [monthAxis, subTotalAxis]);
myChart.addSeries("Total", dimple.plot.line, [monthAxis, totalAxis]);
...
So the first y axis is added and the second two are merged with it resulting in a single Y axis rendering 3 different values.
from dimple.
That looks like a nice interface. Thanks.
from dimple.
I'd like to leave this open so I can associate it with the new functionality when it gets released.
from dimple.
Sounds great :)
On Tue, Jan 14, 2014 at 9:52 PM, John Kiernander
[email protected]:
I'd like to leave this open so I can associate it with the new
functionality when it gets released.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/38#issuecomment-32311472
.
from dimple.
This is exactly what I'm looking for. Can you let us know what your progress is on this?
Currently, I use multiple hidden axes and manually set the max and min so that the scale is correct, but this breaks the marker lines on mouseover. I can't use the data hack because I want different series' drawn with different plotFunctions, but your proposed solution allows exactly what I want. 👍
from dimple.
It's implemented for most basic cases, you can see the branch I'm working on here:
https://github.com/PMSI-AlignAlytics/dimple/tree/composite-axes
I've been caught up in a big code refactoring but I'll try and wrap this up fairly soon.
from dimple.
Just found this feature/functionality. And update on status?
from dimple.
I've been using this feature in the 1.2.0 release for the past ~3 weeks and it seems to be working without issue.
from dimple.
Very cool news. (My bad. I didn't realize that it was part of 1.2.0.)
from dimple.
No worries! It was silently merged from the branch - I only noticed it because I was watching carefully at the time :)
Its a great feature - really makes working with dimple much more pleasant.
from dimple.
Already implemented a proof of concept chart using composite axes!
It's a big help.
Kudos to John for the great work!
from dimple.
Thanks guys, it's good to know you've given it some testing. 1.2 isn't going to be an official release (hence silence) It is going to be version 2.0 coming very soon. I just need to document changes and add new examples. Quite a lot has changed.
from dimple.
+1 on this feature - thanks much John!
from dimple.
Added v2.0.0
from dimple.
Can't wait to try out v2.0.0 - great work! 👍
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.