charts

How to add a vertical line in a horizontal bar chart?

人盡茶涼 提交于 2019-12-24 12:55:02
问题 I have to following chart with dates as the x-Axis: How can a white, vertical line on top of the bars chart be displayed at today's date? 回答1: Here is detailed step-by-step guide: http://peltiertech.com/Excel/Charts/DummySeries.html#AddLine My own sample file shared as an example: https://www.dropbox.com/s/8uyxqpiq2blv6t9/Charts_H-V_Lines.xlsx Hope that's somehow helpful. 来源: https://stackoverflow.com/questions/14537881/how-to-add-a-vertical-line-in-a-horizontal-bar-chart

Center Data Label over XY scatter with lines

我的梦境 提交于 2019-12-24 12:53:43
问题 I am in the process of creating the following chart: But I need each data label to be centered over the line that gets created instead of the end point of the line. I have the following: Set mypts = mysrs.Points mypts(mypts.Count).ApplyDataLabels With mypts(mypts.Count).DataLabel .ShowSeriesName = True .ShowCategoryName = False .ShowValue = False ' optional parameters .Orientation = 0 .Position = xlLabelPositionAbove .Font.Size = 10 .Font.Bold = True End With Does any body know how to center

Maximum and Minimum Y-Axis Values on Keen.io Dashboard Charts

喜夏-厌秋 提交于 2019-12-24 12:51:49
问题 Is it possible to set maximum and minimum values on the Y-axis on keen dashboard charts? I downloaded the dashboard from this github repo : https://github.com/keen/dashboards I have a vertical column chart like below, I want to set the minimum value on the y-axis to be 70 and the maximum to be 90, how can I do this? <div class="col-sm-8"> <div class="chart-wrapper"> <div class="chart-title"> Alex Weight (kg) </div> <div class="chart-stage"> <div id="chart-01"></div> </div> <div class="chart

C# MVC - Drawing Bar Chart from Variables within Loop

◇◆丶佛笑我妖孽 提交于 2019-12-24 12:02:53
问题 My question is in response to: Showing System.Web.Helpers.Chart in a partial view from the model @{ var myChart = new Chart(width: 600, height: 400) .AddTitle("Chart Title") .AddSeries( name: "Employee", xValue: new[] { "Peter", "Andrew", "Julie", "Mary", "Dave" }, yValues: new[] { "2", "6", "4", "5", "3" }) .Write(); } Has anyone been able to use values from a loop within the xValue and yValue. Currently in the examples I have found all the values are hard coded. I would like to use the item

Is it possible to generate a chart with this very specific background?

你说的曾经没有我的故事 提交于 2019-12-24 11:54:10
问题 I need to create a chart, that has a grid like in the following picture. The key factors being: The x-axis is time with each tick marking 30 seconds y-axes labels in the chart repeat at a variable interval Chart must grow with the amount of data (i.e. for 30 minutes of data, it should be 60 boxes wide) I have been looking into matplotlib for a bit, and it seems promising. I also managed to fill the chart with data. See my result for 40 Minutes of data. But before I invest more time into

Chart - Controlling axis interval, spacing and visibility

偶尔善良 提交于 2019-12-24 11:46:18
问题 Using chart windows forms control to display: STACKED COLUMN Several series, ~70 datapoints per series. Let's say x: 0 - 70. Secondary Y-axis. POINT/LINE 0-3 series displayed, ~20 datapoints per series. X-values are 0-20, so only covering part of the chartarea. Primary Y-axis. I am adding custom labels to the x-axis. The user can choose to show 24, 48 or 72 datapoints. Depending on the number of datapoints, the interval on the x-axis is changed. 24 -> Interval 1 48 -> Interval 2 72 ->

Coloring Google Stepped Area Charts?

萝らか妹 提交于 2019-12-24 11:27:05
问题 is it possible to color each step indivual? Now all steps are blue but I want the first step blue, second yellow, third red, ... <div id="chart_div" style="width: 100%; height: 200px;"></div> google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Step', 'Equity'], ['1', -40], ['2', -40], ['3', -40], ['4', -40], ['5', -30], ['6', -30], ['7', 10], ['8', 10], ['9', 10], [

Dynamic referencing the UsedRange in VBA

≡放荡痞女 提交于 2019-12-24 11:17:21
问题 I have a code that gets data from a sheet and creates a graph. In the source sheet, each column is a series, and the number of series may change. What my code does: it reads the used ranges so that it can graph the values. Obs1: For 2 of the time series I create, the data is annualized, so as I count backwards for the calculation, if the data before is less than one year, the code shows as "Not Enough Data". Problem: If I run the code with 2 time series (2 columns), I get two lines in the

Google Charts: how do I change the percentage label color?

爱⌒轻易说出口 提交于 2019-12-24 11:09:22
问题 I'm using Google Charts to display pie charts. In my options variable, I have the legend set this: legend: {position: 'labeled', textStyle: {color: 'white', fontSize: 24}} Now if you look at the image below, the font color only applies to the label name, but not the percentage text or the label line. Is there anything I can do to change the color for the percentage text and the label line to white? 回答1: didn't see an option that will change the text style for the charts elements mentioned but

CategoryFilter as column selector

帅比萌擦擦* 提交于 2019-12-24 10:56:35
问题 I used the following example to create a drop down menu: https://jsfiddle.net/asgallant/WaUu2/ which makes it possible to select a column and then show the line on the graph. But I also want to use a ChartRangeFilter but the problem is this method doesn't use a dashboard so I have no clue were to start to make everything work together. And most of the examples I found use this dashboard method. I want it to approximately to be like this example http://jsfiddle.net/x7pyk55q/4/ but would like