Open chart source list

by WaseelAkbari » Wed Dec 14, 2016 6:53 pm

Hello,

How can we add the option to open chart source list by clicking on the chart ?
User avatar
WaseelAkbari
 
Posts: 16
Joined: Tue Nov 29, 2016 5:25 pm
Location: Greater Los Angeles Area

by Dmitry Kozlov » Thu Dec 15, 2016 9:40 am

Hello,

Please, take a look at the sample:
http://www.spchart.com/demo/link-chart-to-list

Here is the configuration:
http://www.spchart.com/documentation/link-chart-to-list

Just put a link to your list to the code.
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm

by WaseelAkbari » Thu Dec 15, 2016 7:25 pm

Hello Dmitry Kozlov,

Your solution shows the filtered data which is really useful, but in this scenario I am trying to open the original list on a new window?

Thanks
Waseel
User avatar
WaseelAkbari
 
Posts: 16
Joined: Tue Nov 29, 2016 5:25 pm
Location: Greater Los Angeles Area

by YuriyMedvedev » Fri Dec 16, 2016 11:31 am

Hi! Just add in Dashboard -> Advanced this line:
Code: Select all
config.plotAreaClick = function (e){
     window.location.href = "link"
};

And replace "link" to link of your chart!
YuriyMedvedev
 
Posts: 14
Joined: Mon Sep 26, 2016 3:05 pm

by WaseelAkbari » Fri Dec 16, 2016 5:41 pm

Hi YuriyMedvedev,

I have added the code but there is no link on the chart !
Attachments
Chart1.jpg
Chart1.jpg (50.39 KiB) Viewed 359 times
User avatar
WaseelAkbari
 
Posts: 16
Joined: Tue Nov 29, 2016 5:25 pm
Location: Greater Los Angeles Area

by Dmitry Kozlov » Mon Dec 19, 2016 4:19 am

Most likely, you have a syntax error in your code.

You can find all available events for your chart by following the link:
http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#events
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm


Return to Dashboard Designer for SharePoint 2013