jQWidgets Forums

jQuery UI Widgets Forums Chart Hiding tickmark values/Legend

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 11 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Hiding tickmark values/Legend #23281

    jondecker76
    Member

    Hello

    I have a couple of questions about getting a chart formatted just how I want it…

    1) I’m using a chart with 4 splinearea series. I want to display the legend of the first 3, but not the 4th series. Is there a way to disable the legend for just one series?

    2) How do I get rid of the values along the bottom of the chart? Tick marks are fine, but I would prefer not to clutter the bottom with all the values of the tick marks.

    Thanks!

    Hiding tickmark values/Legend #23291

    Dimitar
    Participant

    Hello jondecker76,

    1) Unfortunately, you can only show or hide the legend for all the series by setting the property showLegend to true or false.

    2) To do this, set the categoryAxis callback function formatFunction to:

    formatFunction: function (value) {
    return "";
    }

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Hiding tickmark values/Legend #23320

    jondecker76
    Member

    Thanks for the reply

    This works, but then the value reference disappears from the tooltips for the datapoints. Is there any way to keep those with the method you showed in this thread?

    thanks again

    Hiding tickmark values/Legend #23379

    Dimitar
    Participant

    Hi jondecker76,

    Unfortunately, this is the only way to remove the categoty axis values.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.