I am using the Telerik rad chart control to create a bar chart of date-based data. The x-axis shows the date for each data point. The y-axis shows some total.
When there is no data in my datasource for a particular date, the chart is still showing a date, but no bar.
I think this falls under the "empty series approximation" functionality. Is there any way of turning this off? Some property or combination of properties that need to be set?
Thank you.
One way of doing this is using xcategories instead of xvalues in your SeriesMapping. Check the sample:
<TelerikChart:SeriesMapping.ItemMappings>
<telerik:ItemMapping FieldName="Value" DataPointMember="YValue" />
<telerik:ItemMapping FieldName="Date" DataPointMember="XCategory" />
</TelerikChart:SeriesMapping.ItemMappings>
I hope it helps.
Related
Following this demo, the following can be used to change the color of a LineSeries:
lineSeries.propertyFields.stroke = "lineColor";
lineSeries.propertyFields.fill = "lineColor";
This works if you add some data when making the chart. But there are issues when no data is originally added.
See this pen. Errors occur. Commenting out the lineSeries.propertyFields.stroke and lineSeries.propertyFields.fill lines allow data to be added to the chart via the "Add Data" button.
Is there a way to define the line color property field so that it works in this situation?
This seems like an issue on amCharts side, I will take a look at it. Meanwhile I would recommend setting property fields just before adding data for the first time.
I have to implement Gantt chart pagination in my project. Explore a lot but couldn't find the solution to achieve. I am reading JSON data to populating Gantt chart and need to achieve pagination.Need quick help.
We have no built-in solution for solving this problem now.
How the pagination should works?
You could try to declare a filter or range from start_date to end_date and add required buttons to pages. Then set changing displayed range by pressing the button.
I have added a list to the dashboard and would like the chart to appear next to the list without having to use up one of my 6 slots. There is an option to "Display Chart Selection" however when this is selected the chart isn't shown. The chart is only shown if I choose "Show Chart Only" in which case I lose the list.
In simple is there a way to display both Chart and List using up one slot on the dashboard?
you have to use to slots for this, there is no other way around it.
Thanks
I am using System.Web.Helpers.Chart for charting in MVC3, charts are rendering fine, but i want to add the value of at the top of the bar I tried a lot but failed to find a way to show value of respective bar,Is it possible using System.Web.Helpers.Chart?
Thanks in Advance.
Can anybody suggest me the possibilities to differentiate the filtered Telerik grid column with other columns. Meaning that I can provide different color scheme to differentiate the filtered column.
Thanks
Speaking as someone who has had to deal with the Telerik MVC grid in a similar manner, I will share with you my solution for doing this:
1) Run the web page that has your grid, and view the source.
2) Find out, by viewing the source, what exactly happens when the filter is turned on (i.e. an attribute change, some function being called, etc.).
3) Using jQuery, set the color scheme of that column when that event occurs.
It's rather annoying that you can't just do it using Telerik's control itself, but this should help you out.