Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use string values as X-Axis Labels for Line Chart #154

Open
MorlaRamakrishna opened this issue Jul 30, 2018 · 0 comments
Open

Comments

@MorlaRamakrishna
Copy link

My Data array is
data: [ values: [{x:'Ram',y:25.25},{x:'Krish',y:250.25},{x:'Phani',y:125.25}], key: 'Result', color: '#ff7f0e' ]

My chart options is like below
options : { chart: { type: 'lineChart' x: function(d){return d.x;}, y: function(d){return d.y;}, xAxis: { axisLabel: 'Name' }, yAxis: { axisLabel: 'Percentage', tickFormat: function(d){ return d3.format('.02f')(d); }, axisLabelDistance: -10 } } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant