Is it possible to flip x & y view in LineChart?
See original GitHub issueI’m currently use vuechart-js wrapper, but it sends me to chartjs docs.
I create charts like this
But I need this. For sure I can make it with CSS, but I can’t rotate hover chart info, anyway it’s not beautiful solution, is it?
I have lbl = [0, 0.1, 0.2, 0.3 …] with fixed step for X-axis and some unpredictable data dt0 for Y-axis, but in fact it’s just dotes. When I flip data in dataset…
labels: dt0,
datasets: [
{
label: 'W(q) (a/2; b/2)',
borderColor: 'rgb(255, 99, 132)',
data: lbl,
fill: false,
showLine: false
},
…I get this
Is it possible to do that I need with Chart.js? Did I miss something? Thank you!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Swapping X and Y axis in Line chart
Solved: Hi everyone. Could someone please explain how to swap X and Y axis in a regular line chart using standard visualization.
Read more >A Complete Guide to Line Charts | Tutorial by Chartio
Line charts are a fundamental chart type generally used to show change in values across time. Learn how to best use this chart...
Read more >Tableau - Customising the Y-axis on a Line Chart - YouTube
Periodically in Tableau, the 'edit axis' option doesn't provide the level of control required to communicate the trend of your line chart.
Read more >How do i flip the x and y axes in a chart in Excel 2013?
SO im trying to take some data and make a chart, and now i've found that it automatically takes the largest values and...
Read more >Line chart reference - Looker Studio Help - Google Support
Line charts don't display trendlines. Time series do. Line chart example. You are launching a series of mobile apps and want to visualize...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, perfect @ereborDeveloper. I was going to recommend the scatter chart. You can use the x & y axis options to control how the ticks are generated if you want different steps
@benmccann @etimberg so sorry for bothering you. I found in Scatter docs, what we got {x: value, y: value} dots, so I just switched them and it works.
Here is my data update method:
And here is some visual