data-visualization

Place StripeLine On Top of Series (Adjust Z-Index/Z-Order)

空扰寡人 提交于 2019-12-02 07:25:33
问题 I'm building a Column chart with System.Web.UI.DataVisualization.Charting and would like to show a dotted line to represent an average. StripeLine seems to be exactly what I'm looking for except it sits under/behind the columns (see example). Is there a way to adjust the "Z-Index" of a StripeLine so that it is shown in front of/on top of the Series ? I don't see a property for this and changing the order I add the Series and StripeLine doesn't make a difference. 回答1: You can use Annotations

Visualize negative/positive data using levelplot in R

一笑奈何 提交于 2019-12-02 07:03:13
I need your insights on how to visualize/map data that span negative and positive values. I have 6 rasters which have been stacked together ( s ) and will subsequently be plotted via the levelplot function in R. Below are the max and min values for each raster . 39.2887, 53.09207 (min, max) # r1 -32.4956, -27.25534 (min, max)# r2 -14.37683, -11.37742 (min, max)# r3 9.512934, 13.60197 (min, max)# r4 -4.993901, -1.851784 (min, max)# r5 -8.190711, -5.104764 (min, max)# r6 At the moment, I am able to produce my map via: library(raster) library(rasterVis) library(colorRamp) s <- stack(r1,r2,r3,r4

How to combine the different y-axes into one y axis in Tableau

给你一囗甜甜゛ 提交于 2019-12-02 06:43:30
in Tableau I would like to figure out how to combine the y-axes for Former smoker, Never smoked, Smoke everyday, and Smoke some days. I want one y axis that ranges from 0.00 to 1. I appreciate any help, thanks. Not sure your ideal graph output, but instead of plotting each individual measure. Drag the [Measure Values] pill to the y axis and filter for the measures you want. You can then drag [Measure Names] to the color shelf to make a line for each measure. 来源: https://stackoverflow.com/questions/46693583/how-to-combine-the-different-y-axes-into-one-y-axis-in-tableau

MSChart / Asp.net Charts don't show tooltips

好久不见. 提交于 2019-12-02 06:38:30
I have a dashboard page in which I am using various MSCharts. I have a class defined for each one of these charts, in which I am defining Tooltips of the Series in that chart like below when I run through each chart class and define its Series properties. Series[0].ToolTip = "Date = #VALX{d}\nTotal Qty Shipped = #VALY"; The problem I'm seeing is because there are multiple charts on the page, each with its own chart area. The only chart that shows a tooltip is the first chart that has one assigned to it. The other charts don't show anything even though similar code is run for them. Why does

Place StripeLine On Top of Series (Adjust Z-Index/Z-Order)

ぃ、小莉子 提交于 2019-12-02 06:34:19
I'm building a Column chart with System.Web.UI.DataVisualization.Charting and would like to show a dotted line to represent an average. StripeLine seems to be exactly what I'm looking for except it sits under/behind the columns (see example). Is there a way to adjust the "Z-Index" of a StripeLine so that it is shown in front of/on top of the Series ? I don't see a property for this and changing the order I add the Series and StripeLine doesn't make a difference. You can use Annotations double avg = Chart1.Series[0].Points.Average(p => p.XValue); double lineHeight = avg;

Change the starting value of value axis in Bar chart with Jfreechart

醉酒当歌 提交于 2019-12-02 06:23:12
I have the following values to be shown in a BAR chart in my Java web application. 9.46373791E8 9.45942547E8 9.45559945E8 9.45187023E8 9.44856693E8 9.44417826E8 9.44007878E8 As u can see the values are really close and have minor differences. When i generate a bar chart using Jfreechart, all the bars appear almost the same height and there is no way of telling the difference visually. So i want to change the (0,0) to (0,9)so that x axis is at number 9 on y axis. I still want to show the real values that the bars represent somewhere on top of the bar. please suggest ideas. i tried the below but

How to add multiple material google charts to one page?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 04:57:54
问题 This question has been asked before, but in regards to the old corechart API, which I haven't had a problem with, not the new Material charts. For instance, the following code will create two charts as expected: var data = [ ['Year', 'Sales', 'Expenses', 'Profit'], ['2014', 1000, 400, 200], ['2015', 1170, 460, 250], ['2016', 660, 1120, 300], ['2017', 1030, 540, 350] ]; google.load('visualization', '1', { 'packages': ['corechart'] }); google.setOnLoadCallback(drawChart); function drawChart() {

Customizing colors in matplotlib - heatmap

 ̄綄美尐妖づ 提交于 2019-12-02 04:41:28
问题 How can I specify colors in heatmap. In this example, the data are uniquely one of 4 values {0,1,2,3} Index= ['aaa', 'bbb', 'ccc', 'ddd', 'eee'] Cols = ['A', 'B', 'C', 'D'] data= [[ 0, 3, 1, 1],[ 0, 1, 1, 1],[ 0, 1, 2, 1],[ 0, 2, 1, 2],[ 0, 1, 1, 1]] print data df = pd.DataFrame(data, index=Index, columns=Cols) heatmap = plt.pcolor(np.array(data)) plt.colorbar(heatmap) plt.show() How can I specifiy those colors in a way to represent colors= {0:'green',1:'red',2:'black',3:'yellow'} 回答1: Create

Customizing colors in matplotlib - heatmap

纵饮孤独 提交于 2019-12-02 03:07:00
How can I specify colors in heatmap. In this example, the data are uniquely one of 4 values {0,1,2,3} Index= ['aaa', 'bbb', 'ccc', 'ddd', 'eee'] Cols = ['A', 'B', 'C', 'D'] data= [[ 0, 3, 1, 1],[ 0, 1, 1, 1],[ 0, 1, 2, 1],[ 0, 2, 1, 2],[ 0, 1, 1, 1]] print data df = pd.DataFrame(data, index=Index, columns=Cols) heatmap = plt.pcolor(np.array(data)) plt.colorbar(heatmap) plt.show() How can I specifiy those colors in a way to represent colors= {0:'green',1:'red',2:'black',3:'yellow'} Create custom colormap and set ticks to your integers from matplotlib import colors cmap = colors.ListedColormap([

How to add multiple material google charts to one page?

笑着哭i 提交于 2019-12-02 01:04:25
This question has been asked before , but in regards to the old corechart API, which I haven't had a problem with, not the new Material charts. For instance, the following code will create two charts as expected: var data = [ ['Year', 'Sales', 'Expenses', 'Profit'], ['2014', 1000, 400, 200], ['2015', 1170, 460, 250], ['2016', 660, 1120, 300], ['2017', 1030, 540, 350] ]; google.load('visualization', '1', { 'packages': ['corechart'] }); google.setOnLoadCallback(drawChart); function drawChart() { new google.visualization.ColumnChart(document.getElementById('groupedBar')).draw( new google