All Questions
Tagged with legend javascript
247
questions
0
votes
1
answer
31
views
Is it possible to count the occurrence number of a custom icon in Leaflet? If yes, how to do it?
Firstly, I'm a beginner, I've learned a lot from you.
I have 5 custom icons defined:
//Awesome icons
var LeafIcon = L.Icon.extend({
options: {
shadowUrl: "markers-shadow.png",
...
0
votes
0
answers
8
views
Adapting the leaflet.js Choropleth example with non static legend
I am trying to use the beautiful base example Choropleth, but would like to have a second base map, with a second legend that would be linked to the base map used (therefore not anymore static), with ...
0
votes
1
answer
40
views
Why the legend merged with the d3.js line chart when zooming?
I am trying to add a legend to the d3.js example named
Line chart with zoom in d3.js
1°) I added the script:
// Add legend rectangle
line.append('rect')
.attr('x', width - 80)
....
0
votes
1
answer
40
views
How to prevent hiding plotly chart bar on chart legend click
How to prevent hiding plotly chart bar on chart legend click in an angular application.
<plotly-plot
[divId]="graph.selectedGraph.name"
[data]="graph.selectedGraph....
0
votes
1
answer
248
views
How to add spacing between Legend and Chart in Recharts with absolute positioning?
I'm using Recharts for the first time in my React project
I've positioned the legend of my BarChart component to the top right corner.
However, I'm struggling to add spacing between the legend and the ...
0
votes
1
answer
38
views
Shared legend for 2 Highcharts using React
I want a shared legend for 2 areaspline highcharts. Using react, I am unable to create that shared legend between the 2.
My code:
component.js:
import React from "react";
import "...
0
votes
1
answer
48
views
How to Display Values Next to Legend in React Pie Chart? Getting 'Undefined' Error
I am trying to display value next to legend, but I am getting undefined.
Debugged but no luck, can you let me know how to fix it.
Providing my code snippet and stackblitz below
https://stackblitz.com/...
0
votes
0
answers
23
views
Highmaps mapbubble legend moves when zooming in the map
I use Highmaps to display bubbles on a mapline. Everything works well but if I display in the legend the color axis and the size of bubbles, there is a strange behavior when I zoom in the map.
The ...
0
votes
0
answers
206
views
Chart js - v 4 How can I change the order of chart legend
The legend was created using the html Legend Plugin, which is displayed differently from the order in which you draw the chart
Is there a way to change the legend order to match the data order?
I ...
0
votes
1
answer
17
views
How can I implement tooltips for Rickshaw legends?
I'm using Rickshaw to display a graph of several time series with a legend. I would like to display some text when the user hovers the mouse cursor over an entry in the legend. There is apparently no ...
0
votes
1
answer
2k
views
apexcharts legend with values
I have created a apexcharts. now i want to show all series data in legend like this
i want like this
my code -
new ApexCharts(document.querySelector("#noOfPoc"), {
series: [32, 2, 1, 1],
...
0
votes
0
answers
25
views
How can we change the position of legend using highcharts?
I am building a pie chart with highcharts js, but having a problem.
As shown below, I was able to put the legend on the bottom, but it's not aligned with the chart. I am trying to put the legend at ...
1
vote
0
answers
820
views
ApexCharts Grouped Stacked Chart: Group legend labels
I'm using ApexCharts to generate some charts and the "new" grouped stacked column charts comes in handy for some of them.
Now I was wondering, if it was already possible to also group the ...
0
votes
1
answer
35
views
change the language of the legend in dygraph in r
I have done this. Edited
the dygraph-combined.js changing the names of months and days, for example, replace text "Oct" with "Okt" and so on, to change the language of the date ...
1
vote
2
answers
831
views
Add line for echarts legend icon
I want to realize echart legend icon with line
I want to implement a circle icon with horizontal lines as show in fig. 1.
fig. 1 circle icon with lines
Friends online say line is the default, but my ...