Good day! I want to display a dynamic stripline on a line chart, but I don’t know where to insert the code. Please tell me! As in this example https://canvasjs.com/javascript-stockcharts/dynamic-stockchart-stripline/
chart = new CanvasJS.Chart(“chartContainer”, {
animationEnabled: true,
theme: “light2”,
backgroundColor: “#1E1E1E”,
title: {
titleFontSize: 3,
text: “Grafik”
},
toolTip: {
enabled: true,
animationEnabled: true,
borderColor: “#29F800”,
fillOpacity: 0.1,
borderThickness: 2,
fontColor: “#F40206”,
backgroundColor: “#1E1E1E”,
content: “{y}”
},
axisX: {
includeZero: false,
titleFontSize: 0,
labelFontSize: 0,
gridThickness: 0,
tickLength: 0,
lineThickness: 1,
lineColor: “#29624A”
},
axisY: {
includeZero: false,
titleFontSize: 0,
labelFontSize: 0,
gridThickness: 0,
tickLength: 0,
lineThickness: 1,
lineColor: “#29624A”
},
data: [{
type: “splineArea”,
toolTipContent: “Price: </b>${y}”,
fillOpacity: 0.2,
/*showInLegend: true,
legendText: “Algorithm xZ & Worm”,*/
lineColor: “#00FBFF”,
exportEnabled: true,
lineThickness: 2,
markerType:”square”,markerColor: “red”, markerSize: 12,
opacity: 0.8,
markerBorderThickness: 1.5,
markerBorderColor: “#00FBFF”,
dataPoints: dps
}]
});
}, false);
I want to achieve such a line with the current value
https://drive.google.com/file/d/1yK_xYoq_8r2G2kQpr4u0QeG7xqSwvyd7/view?usp=sharing
-
This topic was modified 3 years, 7 months ago by OlegLR.
-
This topic was modified 3 years, 7 months ago by Vishwas R.