Hi Team,
Could you help me in this case?
I try to put labels in my line chart, but I don't now how move the text to over the line.
Thanks.
Hi Team,
Could you help me in this case?
I try to put labels in my line chart, but I don't now how move the text to over the line.
Thanks.
You should be able to do this by applying some custom CSS in Canvas:
Element style
on the layer settings panel, click the +
icon to add CSS.valueLabel
class applied).Apply Stylesheet
.I'd imagine you are looking for something along these lines:
.canvasRenderEl .valueLabel {
margin-top: -5px;
}
Or if you prefer to use the expression editor, add a css
argument to the render
function:
css=".canvasRenderEl .valueLabel { margin-top: -5px; }"
Thanks,
Luke
Thanks Luke!!
Perfect, I have a good graph. But, I have an any question more...How can I see the "key" value in Wordpad? for example, you told me "valueLabel", What about more have? for example: legend, axis X or axis Y, etc.
We don't currently have a documented list of "officially" supported classnames for you to use in your custom CSS, so my recommendation would be to use the developer tools in your browser to get an idea as to what you can modify.
For example, if you want to change the legend, you can inspect the DOM in your browser around the legend, and find the corresponding classname for use in your stylesheet.
Thanks Luke!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.