Position Images on top of Column with maximum value in Multiseries Column Chart - CanvasJS JavaScript Charts
Position Images on top of Column with maximum value in Multiseries Column Chart - CanvasJS JavaScript Charts
by canvasjs
HTML
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<br/><!-- Just so that JSFiddle's Result label doesn't overlap the Chart -->
<div style="padding: 20px 30px; background: linear-gradient(#103049, #91a9cd);">
<div id="chartContainer" style="height: 500px; width: 100%;"></div>
</div>
JavaScript
var images = [];
var chart = new CanvasJS.Chart("chartContainer", {
theme: "dark2",
backgroundColor: "transparent",
title:{
text: "Brandon J. Brodrick"
},
subtitles: [
{
text: "Attorney at Law"
},
{
text: "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯"
},
{
text: "July Pre-Litigation RFD Volume By Case Manager"
}
],
axisX: {
labelAngle: 0,
labelFontSize: 14,
labelMaxWidth: 70
},
axisY : {
title: "Case Quantity",
labelFontSize: 14
},
legend: {
verticalAlign: "center",
horizontalAlign: "left",
reversed: true
},
toolTip: {
shared: true
},
data: [
{
type: "column",
color: "#fffffd",
name: "Today",
showInLegend: true,
dataPoints: [
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y: 9 },
{ label: "First Name Last Name", y: 8.2 },
{ label: "First Name Last Name", y: 9 },
{ label: "First Name Last Name", y: 9 },
{ label: "First Name Last Name", y: 8.9 },
{ label: "First Name Last Name", y: 3.8 },
{ label: "First Name Last Name", y: 8.4 },
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y: 5 }
]
},
{
type: "column",
color: "#ffbf63",
name: "This Week",
showInLegend: true,
dataPoints: [
{ label: "First Name Last Name", y: 7 },
{ label: "First Name Last Name", y: 12 },
{ label: "First Name Last Name", y: 11 },
{ label: "First Name Last Name", y: 12.2 },
{ label: "First Name Last Name", y: 12.2 },
{ label: "First Name Last Name", y: 10 },
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y: 11.8 },
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y: 5 },
{ label: "First Name Last Name", y:...