-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Labels for dataviz bar charts, javascript provided #174
Comments
Are you using LWC 3.4? It might be already possible with the JSON description. |
@Gustry can you point me to right direction, where I can find a json template? |
Sorry, I was fast ;-) There is also the Read here https://github.com/3liz/lizmap-plugin#lizmap-qgis-plugin |
Thanks |
Let me know if it answers your question. But I think @mdouchin asks this new JSON configuration for this. |
@Gustry I tried dev version of QGIS plugin. There is an option to change chart layout with a JSON, but it's not possible to show labels on bars, or I can't figure out how to do this. |
An example from @mdouchin : "user_layout": {
"xaxis": {
"showticklabels": "False"
},
"yaxis": {
"showticklabels": "False"
},
...
} and he gave this link: Ticket in the documentation : #159 @mdouchin Can you tell us if it's possible or not with this new widget? |
I think the labels for bars cannot be changed with this JSON, since this JSON is used to override the layout, not the plot config.
NB: To keep references for the layout, here are some examples:
{"yaxis": {"ticksuffix": " ha"}}
{"xaxis": {"showticklabels": false}}
{"yaxis": {"tickformat": ",.2f"}} ref: http://bl.ocks.org/mstanaland/6106487
{"margin": {"l": 70}}
You can combine these examples to fit your needs. |
I found a solution with Java script so I will close it |
Would you mind sharing your js? Thanks. |
@pcav this is script that I use
|
Thanks |
Thanks |
Ticket transferred into the documentation |
If it's possible add an option to display labels on or inside bars for a bar charts
The text was updated successfully, but these errors were encountered: