This is a migrated thread and some comments may be shown as answers.

select & chart opacity

3 Answers 114 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Sagi
Top achievements
Rank 1
Sagi asked on 13 Aug 2013, 01:48 PM
I'm using the "select" configuration of the chart (like showed in http://demos.kendoui.com/dataviz/api/selection.html) 
However , I need to change the opacity of the non selected areas.
Currently , the non selected areas are hardly shown due to very low opacity levels.
What is the way to change this setting ?
In addition , how can I control the zoom slider style itself ?
Thx
Sagi Karni 

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 14 Aug 2013, 06:59 AM
Hello Sagi,

Up to your questions:

  • The opacity of non selected areas is applied to elements with .k-mask class. Hence is order to change it you could use custom CSS rule. For example: 
    <style>
    .k-mask{
        opacity: 0.2;
    }
    </style>
  • You could customize the appearance of zoom slider using custom CSS too. For example: 
    <style>
    .k-selection{
        background: pink;
        border-color: green;
        /*............*/
    }
    </style>


Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gary
Top achievements
Rank 1
answered on 10 Sep 2013, 10:30 PM
I would like to use the select feature with vertical CategoryAxes. Further, I would like to programatically control the selection. Neither of these seem possible, currently.
0
T. Tsonev
Telerik team
answered on 11 Sep 2013, 03:11 PM
Hello,

I can confirm that the selection is horizontal-only currently. Please feel free to cast your voice for vertical mode on UserVoice.

The lack of a public API for the selection is indeed a pain point and we'll try to address this in future releases.
Currently you can use setOptions for setting it:

var chart = $("#chart").data("kendoChart");
chart.setOptions({
    categoryAxis: {
        select: {
           from: 0,
           to: 5
        }
    }
});
// No need for calling redraw in future releases and latest internal builds
chart.redraw();

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Sagi
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Gary
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or