Coder Social home page Coder Social logo

Waiting for accessing shapes about dimple HOT 4 CLOSED

fvi317879 avatar fvi317879 commented on June 19, 2024
Waiting for accessing shapes

from dimple.

Comments (4)

johnkiernander avatar johnkiernander commented on June 19, 2024

Any chance you could create a jsFiddle? It's very hard to diagnose without. If you want to set the stroke width you can do it before drawing using the lineWeight property of the series (https://github.com/PMSI-AlignAlytics/dimple/wiki/dimple.series#wiki-lineWeight) but it sounds like there may be more to it than that.

from dimple.

fvi317879 avatar fvi317879 commented on June 19, 2024

Hi John, thanks for your answer. I'm quite new and not sure how to use a jsFiddle, this is the link http://jsfiddle.net/fvi317879/9e9hB/.

Anyway, i could use the lineWeight property but it affects all the lines where i wan't to change de weight for only one line. That's why i try to use the shapes property, but it only exists after draw call.

Other problem, i have some issues regarding how data is sorted. I've tried to sort the series (using the LaDate field), but it's only sorted in the legend (ie not in the chart),then i've tried to sort the xAxis (using the Heure, LaDate fields), but still no success.

from dimple.

johnkiernander avatar johnkiernander commented on June 19, 2024

That Fiddle won't work unless you add the relevant libraries and mock the ajax calls. However, I can see the problem you are facing, there isn't a callback within dimple for an animation finish on draw, and I don't think it would quite do what you want if there were. The easiest approach is probably just to delay your call with the JavaScript setInterval (http://www.w3schools.com/jsref/met_win_setinterval.asp) function. I'm not sure how much you would need to delay it and how safe that would be. Maybe set a really small interval and then clearInterval when the shape is found

The ordering issue is because you are ordering the series but you should be ordering the axis. I see you are calling addOrderRule twice for the category axis however with a grouped axis like this addOrderRule will only order the outer values, you need to use addGroupOrderRule to order the contents of the groups (in this case LaDate).

from dimple.

fvi317879 avatar fvi317879 commented on June 19, 2024

Thanks a lot.

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.