enjalot / tributary

rapid prototyping with d3.js
http://tributary.io
Other
598 stars 70 forks source link

Question on converting svg to dyanmic chart #124

Closed procoder-net closed 10 years ago

procoder-net commented 10 years ago

Hi enjalot,

I have got this thermometer draw, i want to make it dynamic fill.

http://tributary.io/inlet/11094354

g.append("svg:path") .attr("d","M 30 50 L 30 200 a25,25 0 1,0 25 0 L 55 50 M 30 50 a15,15 0 0 1 25 0") .style("stroke-linecap", "round") .style("stroke-width", 6) .style("stroke", "rgb(204,204,204)") .style("fill", "red") .style('shape-rendering', 'geometricPrecision')

can you tell what are ways of achieving it.

Regards Moyeen

procoder-net commented 10 years ago

Hi,

I did the update,

Regards Moyeen

procoder-net commented 10 years ago

Hi, one more problem is to update offset 1 by 1...gradient fill from 1-50 ..

georules commented 10 years ago

I don't have a great idea for you at the moment, but I thought I would suggest some other resources - as this is the place for issues specific to the tributary application. It might be best to talk about this one on d3 forums (I see that they link stackoverflow with the d3.js tag as being the best way) http://stackoverflow.com/questions/tagged/d3.js https://groups.google.com/forum/#!forum/d3-js

Some others who are fans of tributary might have insight in our tributary google group: https://groups.google.com/forum/?fromgroups#!forum/tributary

Good luck!

enjalot commented 10 years ago

thanks for providing the links @georules. glad you are trying out tributary @procoder-net, but lets use the proper forums to discuss these issues