Gauge D3, display values positions
I'm trying to use some ready written javascript to make gauge. I'm almost there, but i cannot figure how to manage value captions. Here is how my code works now: And this is how I like it to work: Don't know how to approach to problem. Working with those Math.Pi, Math.cos and Math.sin is just too much for me. var name = "Value"; var value = 17; var gaugeMaxValue = 100; // data to calculate var percentValue = value / gaugeMaxValue; //////////////////////// var needleClient; (function(){ var barWidth, chart, chartInset, degToRad, repaintGauge, height, margin, numSections, padRad, percToDeg,