-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
For stacked graphs, using the "stack" plugin that is included with Flot, the labels are placed in the location that the value would be if it weren't stacked, which is wrong for the stacked graph. Example:
<html>
<head>
<script language="javascript" type="text/javascript" src="jquery.js"></script>
<script language="javascript" type="text/javascript" src="jquery.flot.js"></script>
<script language="javascript" type="text/javascript" src="jquery.flot.stack.js"></script>
<script language="javascript" type="text/javascript" src="jquery.flot.valuelabels.js"></script>
</head>
<body>
<div id="placeholder" style="width:800px;height:500px"></div>
<script id="source" language="javascript" type="text/javascript">
$(function () {
$.plot($("#placeholder"),
[ [ [ 1, 3 ], [ 2, 4 ], [ 3, 5 ] ],
[ [ 1, 6 ], [ 2, 7 ], [ 3, 8 ] ] ],
{
series: { stack: 0 },
valueLabels: { show: true }
}
);
});
</script>
</body>
</html>
Metadata
Metadata
Assignees
Labels
No labels