ct-point with horizontal label
See original GitHub issueHi Gion Would be nice if ct-point element contains also value from horizontal axis, something like:
<line x1="" y1="" x2="" y2="" class="ct-point" ct:value="" ct:horizontal-label="27.02.2015"></line>
This value is needed for tooltips. Currently I have workaround for this, which doesn’t work when showLabel is false.
chart.on('created', function() {
var horizontalLabels = svgElement.find('.ct-labels .ct-label.ct-horizontal');
svgElement.find('.ct-series').each(function() {
$(this).find('.ct-point').each(function(i) {
$(this).attr('ct:horizontal-label', horizontalLabels.eq(i).text());
});
});
});
Issue Analytics
- State:
- Created 9 years ago
- Comments:9
Top Results From Across the Web
How to print Y axis label horizontally in a matplotlib / pylab ...
It is very simple. After plotting the label, you can simply change the rotation: import matplotlib.pyplot as plt plt.ion() plt.plot([1, 2, ...
Read more >Change axis labels in a chart - Microsoft Support
In the Horizontal (Category) Axis Labels box, click Edit. In the Axis label range box, enter the labels you want to use, separated...
Read more >How to print the Y-axis label horizontally in a Matplotlib/Pylab ...
Just by using plt.ylabel(rotation='horizontal'), we can align a label according to our requirement. Steps. Plot the lines using [0, ...
Read more >Why is the y axis label horizontal - Julia Discourse
Suddenly, the y axis label is horizontal instead of vertical. guidefontrotation changes both the x axis and y axis labels.
Read more >How to set x axis label width for chart ? - PTC Community
I am using label chart with Horizontal chart orientation. X-axis field is string (length more than 100) field names are truncated as you...
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
Also useful in this context is that meta can also be a complex object where it will be serialized with
Chartist.serialize
and can be deserialized from the DOM attribute withChartist.deserialize
.http://jsbin.com/wopoya/3/edit?js,console,output
Ok, good point. Lets keep it in mind in case of meta conflicts. Thx for your help.