charts

C# Line Chart How to Create Vertical Line

空扰寡人 提交于 2019-12-24 02:35:13
问题 I have a line chart. For example like this; I want to draw a vertical line that have a label at the bottom of it. And i want that label move through x points of chart with its vertical line when i drag it above those x points. I will get the y points where that line with label matches Y axis For example; How can i do this? 回答1: This solution lets you drag the Annotation line left and right and updates the X- and Y-values in a (right aligned) title field. Update: I have corrected a few things

C#: How To Crosshatch A Bar In An ASP.Net Bar Chart

寵の児 提交于 2019-12-24 02:16:51
问题 I have an asp.net bar chart that I'm trying to add cross hatching to one of the bars. I cannot figure out how to do it. I want to crosshatch the 4th bar (from the left) in the chart. I tried the following code below but it doesn't work. Chart1.Series["Actual"].Points[3].Color = ColorTranslator.FromHtml("#ffffff"); Chart1.Series["Actual"].Points[3].BorderColor = ColorTranslator.FromHtml("#d0d0d0"); Chart1.Series["Actual"].Points[3].BackSecondaryColor = ColorTranslator.FromHtml("#d0d0d0");

KendoUI - DataViz - Grouping and Aggregating a JSON datasource within the chart

╄→尐↘猪︶ㄣ 提交于 2019-12-24 02:13:08
问题 I've been able to accomplish such grouping in certain charts and not others. For example, assume that I have a datasource that looks something like this: var pictures = [ { type: "JPG", len: 20, wid: 15, appr: 17.5, count: 2 }, { type: "JPG", len: 22, wid: 17, appr: 12.5, count: 3 }, { type: "JPG", len: 24, wid: 15, appr: 10.5, count: 1 }, { type: "JPG", len: 22, wid: 4, appr: 17.5, count: 6 }, { type: "PNG", len: 20, wid: 15, appr: 17.5, count: 4 }, { type: "PNG", len: 25, wid: 7, appr: 9.5,

D3 Inverting Color Scale Map to get amplitude

Deadly 提交于 2019-12-24 02:09:07
问题 I have a colorscaleMap lets assume something like this d3.scale.linear() .domain([0.01,0.02,0.03,0.04,0.05]) .range(["#5100ff", "#00f1ff", "#00ff30", "#fcff00", "#ff0000"]) Now I want to use the invert function Let's say invert("#5100ff") and I am expecting the output to be 0.01 but invert functionality does not work on non-numeric values. As stated in https://github.com/d3/d3-scale This method is only supported if the range is numeric. If the range is not numeric, returns NaN Problem:- This

SSRS range bar chart, different color when no data

有些话、适合烂在心里 提交于 2019-12-24 01:59:16
问题 I am looking to change the color in the "gaps" in the range chart that I have built. Essentially I am trying to build a visualization for the staff to see the availability on bays. The red markings mean the bay is booked, I wanted green then to be in between the red to highlight free bays. Occupied bays: I suspect I need to go back to my dataset and add in some date tables to show "null data" to allow a "switch" to work, but I thought someone might know if I could change this without going

Google Charts API custom month names

限于喜欢 提交于 2019-12-24 01:37:47
问题 I need to set custom month names in Charts. How set custom month names in Google Charts API? 回答1: You can specify custom ticks on the hAxis ... google.load('visualization', '1', {packages: ['corechart']}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('date', 'Time of Day'); data.addColumn('number', 'Rating'); data.addColumn({type: 'string', role: 'tooltip'}); data.addRows([ [new Date(2015, 1, 1), 5, 'January'],

How do you get a y-axis that starts at zero in graphael, if none of your values are zero?

风流意气都作罢 提交于 2019-12-24 01:26:09
问题 I wish to create a graph whose y-axis starts at 0. None of my values are 0 though. How do i go about doing that in graphael ? As an extension, how can I create a graph with a y-axis whose maximum value is, lets say, twice the maximum value in the provided data ? 回答1: I don't know if this is too late but I've been struggling with gRaphael myself and came across a solution that might work for you. There's no obvious or clean way to do this but I've found a decent hack for it. You can add in

Multi-level Pie Chart in R

我的未来我决定 提交于 2019-12-24 01:16:17
问题 I'd like to make a very simple multi-level pie chart like the one you see below: As you can see I already know about sunburstR but (since I am looking for a simpler solution) that's not exactly how it should be. Additionally I'd prefer if I could easily export it as vector graphics. The second solution, using ggplot2 to do a plot in polar coordinates also appears quite complicated for such a simple plot. I'd be happy if you could help me! Thanks in advance! SP 回答1: In ggplot2 this is should

How can i create doughnut chart using oxyplot in xamarin.android?

泪湿孤枕 提交于 2019-12-24 01:09:41
问题 I need to create app that shows chart like Highcharts. But i did't get any library for that. So i'm using oxyplot to create charts. I have create pie chart using oxyplot like this. var plotView = new PlotView (this); plotView.Model = PieViewModel(); this.AddContentView (plotView, new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent)); public PlotModel PieViewModel() { var modelP1 = new PlotModel { Title = "Pie Sample1" }; dynamic seriesP1 = new

Dynamic Data Display with ObservableCollection

风格不统一 提交于 2019-12-24 01:05:41
问题 I dont know how to display some points using ObservableCollection. This is my code: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0" Title="MainWindow" Height="350" Width="525"> <Grid> <d3:ChartPlotter x:Name="Plotter" Margin="100,5,0,0"> <d3:LineGraph /> </d3:ChartPlotter> <Button x:Name="button" Content="Load