Databar wont give zero horizontal axis

  • I wanted to create a column databar like the one in this MSDN post by Sean Boon. http://tinyurl.com/3szge8m

    Everything works except getting a horizontal axis to show. I have changed the chartArea collection to show the horizontal axis, but the result is an axis across the bottom of the databar values and not nicely in the middle like the example. The values that are plotted are either 1 or -1 and in this case indicate win loss. This would be a nice control for displaying binary results like this or pass/fail, live/die.

    Any suggestions, because I have tried I think everything. I even used a regular chart and was able to produce a chart that looks just like the databar, and still the horizontal axis wants to sit on the bottom of the chart.

    Thanks.

    John

    John A. Byrnes

  • OK I got this to work finally. I sucked in parts of the XML from the example code provided by the author. BTW here is a better URL for the databar example. http://blogs.msdn.com/b/seanboon/archive/2009/11/16/building-win-loss-sparklines-in-sql-server-reporting-services-2008-r2.aspx

    The author did a very nice job stepping the user through the control. I think the issue I was having was either a cached page (don't you have to delete the .data file to make the rrdl re-render?) or maybe I simply missed something in the chart area collection.

    If you are inclined, try the example in the URL above, it makes a nice sparkline object.

    Thanks.

    John

    John A. Byrnes

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply