Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels placed wrong for stacked graphs #3

Open
newacct opened this issue Sep 10, 2010 · 3 comments
Open

Labels placed wrong for stacked graphs #3

newacct opened this issue Sep 10, 2010 · 3 comments

Comments

@newacct
Copy link

newacct commented Sep 10, 2010

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>
@cardeo
Copy link

cardeo commented Oct 5, 2011

any resolution on this? I have the same problem

@bsterne
Copy link

bsterne commented Aug 23, 2012

Sorry to pile on, but I have the same issue.

@marathe-abhijit1904
Copy link

I am facing the same issue, anyone got the resolution for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants