jQWidgets Forums

jQuery UI Widgets Forums Chart Gradient Bands and Legends

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Gradient Bands and Legends #84678

    George S
    Participant

    I have several questions:
    1). I realize I can have bands, for example, from X Axis values 500 to 1000, show red… Can I make this a gradient INSTEAD of a solid color?

    2). When I click on the LEGEND of a chart, I can tell the Chart to NOT display certain values/fields. Assume I disable 2 out of the 4 fields. I have half the data showing, so can I now FORCE the graph to resize the columns/bars? Specifically, when showing 4 datafields, each column in my chart might be 20 pixels wide. If I click on the legend, to show I only want to see 2 out of the 4, there is half as much “data” on the screen, so can I force the graph to redisplay, MAKING the columns 40 pixels wide? Right now, the graph redisplays, but just leaves the area where the columns/bars used to be, empty.

    3). Just like the user can click on the legend to enable/disable a datafield from being displayed, can i do this programmatically? i.e. how would I go about building a button that says “Take data field 1 out of the graph”. I would prefer to disable field 1 as opposed to just hiding it, as I want the graph column/bars to be resized larger. (See above question)

    4). Is there any type of user-based data selector? Let’s assume I define a SOURCE as JSON. I display all SALES REPS for a region, and how much they have sold. I would like to have a (drop down??) control that says “Here are all the reps, click on the ones you want to see/hide”. Is there any functionality like this? If not, do you have any guidance on how to do this?

    Thank you

    Gradient Bands and Legends #84760

    ivailo
    Participant

    Hi George S,

    1. The widget don’t offer colorr bands with gradient.
    2. You can change the column’s width. Please refer at this demo.
    3. You can use showSerie/hideSerie methods to control the displayed series.
    4. You can create this functionality outside of the grid and show/hide series when an option is selected.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.