Results 1 to 3 of 3

Thread: Is there a way to set the cursor css property on pie chart segments?

  1. #1
    Touch Premium Member
    Join Date
    Nov 2009
    Location
    London
    Posts
    49

    Default Is there a way to set the cursor css property on pie chart segments?

    Has anyone found a way to do this? The closest I've got (before digging too deep) is:

    Code:
    <style>
        .x-surface svg, .x-surface .x-vml-sprite {
            cursor: pointer;
        }
    </style>
    However this will turn the cursor to a pointer over the whole of the chart, not just the pie segments. Does anyone know if this is possible, from digging through the generated tags it doesn't seem like the svg and vml elements have any identifying classes to mark them as being part of the pie.

    Thanks,
    Matt

  2. #2
    Sencha User
    Join Date
    Mar 2013
    Location
    Ahmedabad, India
    Posts
    15

    Default

    I have also same question. How can I show cursor with pointer on just slice of pie chart?

    Thanks,
    Piyush Dholariya

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Location
    Ahmedabad, India
    Posts
    15

    Default

    Hi matt I have found solution you can do it with this way.

    series: [{
    type: 'pie',
    style: {
    cursor : 'pointer'
    }
    xField: 'name'
    }]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •