All Questions
Tagged with legend javascript
247
questions
1
vote
1
answer
910
views
Chart js custom separate legend returns error when clicking legend
Trying to get a line chart to work with a custom legend. This works with a doughnut chart. But not with this line chart.
I keep getting this error when clicking a legend, and nothing changes in the ...
2
votes
1
answer
7k
views
How to show legend tooltip when hover on legend series in ApexCharts.js
Currently there is no such feature in apexchart v3.19.3, does anyone have a work around for this?
0
votes
0
answers
168
views
ChartJS colored box in axis label
I am trying to create a line chart with ChartJS where the colored boxes, which can normaly be found in the legend are rigth infront of the axis label. Is there any way to create a colored box there or ...
0
votes
1
answer
1k
views
How I can make a linear gradient legend using Leaflet
i asked this question on gis.stackexchange by they said i should ask here
I'm working on project that visualize solar energy data using Leaflet, I want to add a map legend when i add a lot of values ...
1
vote
2
answers
431
views
How can I add a text link just below the legend box in highcharts
I would like to add a text link just below the last item of vertical legend on a pie chart.
I have tried using a function inside LabelFormatter but not experienced with javascript to do the function ...
0
votes
0
answers
141
views
Showing legend valueText in XYChart using AmCharts
I have an XYChart implemented using AmCharts 3, I wanna to show valueText next to legend labelText. I tried to set "valueText": "[[value]]" in legend object, and "legendValueText": "[[value]]" in ...
1
vote
1
answer
466
views
R Highcharter customize legend to show only certain values
I need the legend to show candidate names and their colors where interval == 3.
see plot here
Subsetting the stops df (stops[my.cols$interval==3])) works for the legend, but it also changes the ...
1
vote
1
answer
755
views
Leaflet: how can I display a marker or legend only on one layer?
I made a leaflet map with different layers which look like this:
L.easyButton('<span class ="buttons">Example </span>', function (btn, map) {
if (map.hasLayer(example1)) {
map....
4
votes
1
answer
2k
views
How to import submodules from d3 to easily create legend?
I'm relatively new to JavaScript and D3 so please keep that in mind. I've created a visualization to show the visit frequency to particular locations in a warehouse and would like to add a legend ...
0
votes
1
answer
701
views
Leaflet legends add and remove to connected layerGroup
I am able to change the legends (legend1 and 2) when adding the overlays (not base maps).
When adding overlay1_name the legend1 shows, but when removing overlay1_name the legend1 is not removed. ...
4
votes
0
answers
3k
views
how to give custom design (icons) for point Style of chart js legends?
I have a chart which designed based on a mock-up but the the mock-up chart has used custom icons for legends pointStyles which basically i couldn't find them in chart JS itself, i tried different ...
1
vote
2
answers
1k
views
onClick : handleClick
I am using chart.js version 2.8.0. I want to add a click event on any data point to drill down to more details of that datapoint.
I added following under options of a line chart:
options: {
events:...
2
votes
0
answers
16k
views
How to add legend in Leaflet map?
I am trying to add a legend in my Leaflet map at the bottom right corner, Ive actually written the code halfway near the end of the code and I do not know how to continue, I want it displayed in the ...
6
votes
1
answer
5k
views
Combining multiple legend elements in chart.js
I am trying to add confidence intervals to a timeseries plot in chart.js. At the moment I plotting three datasets and using the fill option. This means I end up with 3 elements in the legend all of ...
1
vote
1
answer
1k
views
Create legend with different circle sizes in Leaflet
Good afternoon,
I am fighting with the leaflet legend dependant on the circle radius. Because I am going to have the values with the same colour, but different size. I would like to create legend ...