Skip to main content

All Questions

Tagged with
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 ...
JonnyPlow's user avatar
  • 187
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?
Kugan Kumar's user avatar
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 ...
FlippinTheSwitch's user avatar
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 ...
Alchemist's user avatar
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 ...
araya lakew's user avatar
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 ...
Safaa Salem's user avatar
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 ...
par's user avatar
  • 103
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....
eduard2344's user avatar
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 ...
Manny's user avatar
  • 85
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. ...
QGIS-user's user avatar
  • 341
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 ...
Sajad Haibat's user avatar
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:...
user204069's user avatar
  • 1,061
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 ...
Jackson_Stake's user avatar
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 ...
mawir's user avatar
  • 187
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 ...
Geographos's user avatar
  • 1,284

15 30 50 per page
1
3 4
5
6 7
17