Comments (4)
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.
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.
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.
Thanks a lot.
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.