doghnut chart control in asp.net with label - asp.net

i am using doghnut chart for creation of chart
what i want is the sum of all number should appear inside the doghnuts like '115 Ticket'
between the circle like lable.
how can i able to get this?
can you please reply ASAP
Thanks in advance

Related

Hiding a grapch in crystal reports if there's only one period

I'm relatively new to Crystal Reports and I'm getting trouble with this:
I created a graph on the group header section so that it shows the sales by client per month. Each client gets its own graph. The thing is that I'm getting blank graphs for the clients that didn't buy anything on the period. I tried to used the following code on the "Suppress if blank" option in the Section Expert in order to hide the blank graphs, but it didn't work:
IF COUNT(T_CMDE.ID_CMDE_LINE)=0 THEN TRUE
Any help is much apreciated.
Go to your section expert and choose the header the graph is in. Next to "Supress (No Drill-Down)" click the x-2 formula button.
Try:
{T_CMDE.ID_CMDE_LINE}=0
That should suppress any header that has a value of 0 for that field.

Displaying n-greatest in Kibana

In my elasticsearch backend, I have a index stats with a numerical field and a #name field.
I would like to display a pie chart (or some other panel type) in Kibana where you can list the top N #name where the percentage in the pie represents the percent of the total fields are represented.
For example, in one index, you might have
#Name: John
Field: 5
#Name: Robert
Field: 5
Then I would have a pie chart with John and Robert both at 50%. Is this possible on Kibana?
Yes what you are trying is very much possible in Kibana 4 with simplicity & ease.
If i am able to understand correctly you want to show TOP N results of a specific field in pie chart.
To do so follow the following steps:
Clicking on pie chart under visualize tab (Create a new visualization).
Selecting a search source - From a new search
Go to Split Slices, select aggregation as terms.
Then enter the field and select TOP in order & size (denote no of records you want) ex:5 will show TOP 5 records.
Click on Apply & the pie chart would be generated :)
PS: Feel free to contact me for any further issue, would be happy to guide :)
Yes; It is possible in Kibana; If we are using Kibana latest version then it would be easy for you to create visualization; Look for Pie-chart in visualization and then proceed next; Fill the appropriate fields and I hope it is not that tough to understand while filling the fields; It will render the pie chat on clicking the "Green" > button.

Use Next and Previous Button for Long column chart

is there any way to show alot of columns in asp.net column chart control?
For example, I have 200 cars and I want to show their sum weight in columns, but I want to show only 10 columns in a page, and by clicking Next button show 10 more.
Just look below mentioned tutorial & try to apply it into your code.
http://blogs.taiga.nl/martijn/2008/08/27/paging-with-aspnet-mvc/

how to filter data in dcjs/crossfilter on selection of datatable row?

I have seen most of the examples of dc.js which filters the data using brushes. How should i filter the data using the row element selected from datatable??
I am not sure of exact solution but some workaround may be done as
dimension.filter(value)
where value updated onclick? Am I going in right direction or is there a better way?
Edit 1
If i draw a row chart of the same thing with the then I don't have to handle onlcick event or anything but for datatable why is it comparatively so much complecated?
That should work. You will have to trigger the redraw events to the charts know about the change.
yes I put a onclick="function(value)" button.
and
window.function(value){
table.dimension(dimension);
table.filter(value);
table.render();
}
PS: I am not proficient in dc.js so this method might not be a optimal solution

MS Chart Control

I am using MS Chart control in asp.net 4.0 application.In that dates are being displayed on Xaxis and count is displayed on Y axis.
If there no data for a specific date its displaying minimum date like "30-12-1899" . Let me know how to display information on the graph without these minimum dae values.
Below is the chart link which I am using in my application http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&displaylang=en
Thanks,
Hima
My guess is you are adding points with zero as the X value. This gets translated to DateTime.MinValue which will give you the strange date. Try using double.NaN or just don't add points if there is no data.
Are you able to post the code you are using to create your chart? That will help troubleshoot your problem.

Resources