data-visualization

dc.js barChart bars overlapping

我的梦境 提交于 2019-12-11 08:31:38
问题 This is my datetime barChart. When I use a fiddle (see here) to try and replicate the issue, it works as intended. NB : The data takes a while (~30sec) to load from github. Here is the code for the graph : pnlPerDaybarChart .height(300) .width(700) .dimension(dims.date) .group(groups.date.pnlSum) .valueAccessor(function(d) { return Math.abs(d.value); }) .renderTitle(false) .x(d3.time.scale().domain([minDate,maxDate])) .xUnits(d3.time.days) .colors(colorChoice) .colorAccessor(function(d) { if

brush in multiline chart is working for only one line

∥☆過路亽.° 提交于 2019-12-11 08:27:54
问题 am working on multi line chart with two lines and with brush and zoom in d3 v4, when i brush my only one line is moving my another line remains constant. Since i have just started learning this on my own i don't have idea on what changes i have to make so that my both lines moves when i brush. Any kind of suggestions would be of a great help. <!DOCTYPE html> <meta charset="utf-8"> <style> .line { fill: none; stroke: steelblue; stroke-width: 1.5px; } .zoom { cursor: move; fill: none; pointer

Plotly failed to return information for selected data points for multiple tracers

荒凉一梦 提交于 2019-12-11 08:14:34
问题 In this example, they plot everything in a single go.Scatter tracer and then they can use the selection_fn to get the information for the selected points. I want to do similar thing with my dataset with consists of 3 clusters. In order to make the clusters easier to be seen, I use one tracer for one class. Therefore, I try to modify the example code to adapt to my dataset as shown below. import plotly.plotly as py import plotly.graph_objs as go from plotly.tools import set_credentials_file

Data exploration in R: display heatmap of large matrix, quickly?

非 Y 不嫁゛ 提交于 2019-12-11 07:29:34
问题 How do I quickly visualize large matrices in R? I sometimes work with large-ish numeric matrices (e.g. 3000 x 3000), and quickly visualizing them is a very helpful quality control step. This was very easy and fast in Matlab, my previous language of choice. For example, it takes 0.5 seconds to display a 1000x1000 matrix: rand_matrix = rand(1000,1000); tic imagesc(rand_matrix) toc >> Elapsed time is 0.463903 seconds. I'd like the same powers in R, but unfortunately visualizing matrices seems

c# How to invert Y Axis with Live Charts

*爱你&永不变心* 提交于 2019-12-11 06:41:59
问题 I'm trying to simply invert the Y Axis so this graph it goes up instead of down. Starting at 6 going up to 1. This is the user doc on inverted graphs https://lvcharts.net/App/examples/v1/wpf/Inverted%20Series This is the example I used to build the chart https://lvcharts.net/App/examples/v1/wpf/Date%20Time The user doc states every live series has an inverted class and for the LineSeries class its simply VerticalLineSeries which I've changed the DateTime example to. However the graph still

Tableau - Count Items in a Dimension based on what month they fall into

删除回忆录丶 提交于 2019-12-11 06:03:32
问题 I am a newbie at Tableau (thought I have spent years working in R and Python), seems to be different in the way it handles things or I'm just not thinking the right way. I have a data sources with training data (employees training and the status). The point is to build a dashboard that shows the % of training that is overdue. I have all of the logic for it, but I am stuck on something. I have a calculated field to show me the total training due, then when I put that in a table, with a filter

Hide axis tick values under a certain range in d3.js

夙愿已清 提交于 2019-12-11 05:32:27
问题 I'm looking for a way of hiding axis tick values that fall under a certain range of values in D3.js. For example, let's say my y axis shows values from 0 to 100, showing every 20 of them (0, 20, 40, 60, 80, 100). Now, how would one hide certain tick values from showing up? So if I want to hide values 60 and 80, the axis will only show 0, 20, 40, 100. Let me explain why that question arose. I asked another question before of how to create a broken y axis. The answer I received was to add

D3.js: Import file changing with a slider

倖福魔咒の 提交于 2019-12-11 05:17:59
问题 I am building a slider on a D3.js visualization. I want the user to select a year on the slider and the slider to retrieve the data from a file, that in the name has the year that it was selected in the slider. For that, I have added in the app.js file: function update(year){ slider.property("value", year); d3.select(".year").text(year); // us_data.style("fill", function(d) { // return color(d.properties.years[year][0].rate) // }); } var slider = d3.select(".slider") .append("input") .attr(

Google Charts Sankey - Node text style

老子叫甜甜 提交于 2019-12-11 04:24:28
问题 Is there a way to change the color of the target node text with style role in Google's Sankey diagram? Currently I have data setup like this: [Source, Target, Label, Style] [A,B,"Test Label", "#ffffff"] I am able to change the color of the node and links but not the text. d3 is not an option for me at this point and the whole idea is to animate the nodes to appear one after the another at its place - hence trying to change the style and re-draw the diagram. Growing the table is not working

Cannot plot Histogram on Ubuntu 14.04

纵饮孤独 提交于 2019-12-11 03:53:24
问题 I'm using Python 2.7 and Bokeh 0.12.4 on Ubuntu 14.04. I have a data frame like so: msrp price compact 1.0 1.0 sedan 2.0 3.0 suv 3.0 5.0 sport 4.0 7.0 made this way: import pandas as pd from bokeh.charts import Histogram, output_file, show s = pd.Series([1,2,3,4], index=['compact', 'sedan', 'suv', 'sport'], dtype='float64') s2 = pd.Series([1,3,5,7], index=['compact', 'sedan', 'suv', 'sport'], dtype='float64') df = pd.DataFrame({'msrp': s, 'price': s2}) output_file('test.html') p = Histogram