Coder Social home page Coder Social logo

Support for Composite Axes about dimple HOT 15 CLOSED

bennick avatar bennick commented on June 16, 2024
Support for Composite Axes

from dimple.

Comments (15)

johnkiernander avatar johnkiernander commented on June 16, 2024

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.

bennick avatar bennick commented on June 16, 2024

That looks like a nice interface. Thanks.

from dimple.

johnkiernander avatar johnkiernander commented on June 16, 2024

I'd like to leave this open so I can associate it with the new functionality when it gets released.

from dimple.

xvrdm avatar xvrdm commented on June 16, 2024

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.

danielytics avatar danielytics commented on June 16, 2024

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.

johnkiernander avatar johnkiernander commented on June 16, 2024

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.

mjsteckel avatar mjsteckel commented on June 16, 2024

Just found this feature/functionality. And update on status?

from dimple.

danielytics avatar danielytics commented on June 16, 2024

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.

mjsteckel avatar mjsteckel commented on June 16, 2024

Very cool news. (My bad. I didn't realize that it was part of 1.2.0.)

from dimple.

danielytics avatar danielytics commented on June 16, 2024

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.

mjsteckel avatar mjsteckel commented on June 16, 2024

Already implemented a proof of concept chart using composite axes!

It's a big help.

Kudos to John for the great work!

from dimple.

johnkiernander avatar johnkiernander commented on June 16, 2024

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.

mvattuone avatar mvattuone commented on June 16, 2024

+1 on this feature - thanks much John!

from dimple.

johnkiernander avatar johnkiernander commented on June 16, 2024

Added v2.0.0

from dimple.

danielytics avatar danielytics commented on June 16, 2024

Can't wait to try out v2.0.0 - great work! 👍

from dimple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.