Kendo Chart Legends - asp.net-mvc-4

I have a couple of charts in my dashboard. In couple of charts it shows multiple series dynamically. So the number of series is not definite. The default feature of Kendo chart legends to hide/unhide chart is working fine. The thing I want is to show the first 5 or 6 legends highlighted. When I click on any other the first should go off and this one should be highlighted. And it goes like that.
I am using Kendo Charts (line chart, bar charts, column charts and pie charts) with ASP.net MVC 4
Thanks in advance.

Kendo Charts has some events for legends maybe they can be useful for you
.Events(events => events.LegendItemClick) and .Events(events => events.LegendItemHover)
Thnx

Related

Customizing Excel 2010 chart label placement using VBA

I need to customize the placement of a vertical axis label on a horizontal stacked bar chart in Excel. Currently I can only place the axis label outside of the chart, but I need to show each label inside the chart - to the left or right of the bar it is associated with (depending on orientation).
The easiest way to do this is to add a text box that references the cells that contain the title values. This is much easier than customizing the chart titles themselves.

How to show total for stacked chart in Kendo Chart API

I want to show total for stacked chart in Kendo Chart API. I have tried something which you can follow here http://dojo.telerik.com/acAHA/7

Dynamically creating multiple chart areas

I am creating a program which given some data files, creates charts based on these files. Rather than creating multiple charts, I have chosen to create multiple chart areas in a loop and add the various data to the chart areas. When using some sample data, which is small, the program creates 3 chart areas within a chart and works fine.
However using larger data, the program creates the chart areas but because there are over 10 chart areas to create, they do not fit into the size of the chart and also are aligned vertically rather than horizontally.
What I would like to do is increase the size of the chart fitting in all the chart areas for large data, aligning all the chart areas vertically and allowing the user to view all the chart areas via a scroll bar, since there will be a lot of chart areas using the real data files, any help will be appreciated.
The below are examples of alignment types you can switch to
Chart1.ChartAreas(0).AlignmentOrientation = AreaAlignmentOrientations.Horizontal
Chart1.ChartAreas(0).AlignmentOrientation = AreaAlignmentOrientations.Vertical
As for a scroll bar, the chart control doesn't support scroll bars. What I would do is have my original chart contained in some sort of panel/tab [any container that supports scroll bars] and then is number of charts required reaches a certain level add another chart below your original and then allow the container to build the scroll bar
'when charts required is now 5 create new chart
If Chart1.ChartAreas.Count =4 Then
Dim OverflowChart As New Chart
'add a new chart below your current chart and let the container
'have the scroll bar and not your chart control
End if
I managed to figure it soon after I posted here which is ironic. For the sake of anyone with similar problems in the future. The way I did it was to:
- Add a scrollbar to the form
- Make the blank chart as big as possible to fit whatever data which was going to be used
- Manually set the position of each chart area using ChartArea.Position and changing the posY for each chart in a loop
This worked great and gave me a lot of control as to how big I wanted the chart areas since ChartAreas.Position also has a width and height attribute and allowed me to easily align the chart areas horiziontally using the y coordinates of each chart area.

How do I add labels to individual bars on a bar chart using Dojo charting

Can the bars on a Dojo chart be labelled with the value? I have the tooltips but I would like the bar values to be shown all the time and for when the graph is printed.
Also I have some bar charts which can run over several pages. When you print the charts, it will just cut off when it reaches the end of the page.
Is it possible to print the x axis at the bottom of the page for each page break?
Can the bars on a Dojo chart be labelled with the value?
Not yet. See http://trac.dojotoolkit.org/ticket/11366

pie chart update or how to send values from gridview to pie chart to update

I am using dojo pie chart in my application..
I have dojo pie chart and bar grpah... My questions is now i need to update those two things..
that is.. above the charts I have gridview with user data.. I need to pass certain values from gridview to pie chart or bar grpahs to update..using javascript or jquery
Try the new DataPresentation widget