Questions tagged [visualization]

2

votes
1

answer
15

Views

Can't change width when annotating bar

I'm creating a stacked horizontal bar graph with 3 segments using the code below: import matplotlib.pyplot as plt import numpy as np def create_stacked_hbar(data): fig, ax = plt.subplots(figsize=(10, 10)) ylabels = list(data.keys()) labels = ['a', 'b', 'c', 'd', 'e', 'f'] c = [] v = [] f...
at1623
1

votes
4

answer
697

Views

How to lazy load google jsapi charts with angularjs?

I'm having a single page application, but with different tabs. Only for one tab I want to show a google charts. I don't want to include and load the charts js file jsapi directly, but only if the specific tab is accessed. Therefore I have to add the js as follows dynamically: var script = document.c...
membersound
0

votes
0

answer
12

Views

How to make a multiwaveplot in Python

I want to plot a multichannel signal in a way similar to the picture below: enter image description here Does someone know if there is a function within matplotlib or any other Python library that makes such plots? I have tried with the joypy library, but the results were not that good. Thanks in ad...
Carlo De Donno
1

votes
2

answer
908

Views

How to edit a query in Apache Superset?

I'd like to change the query so that the metrics / labels are different. So instead of the chart saying "sum_sum_girls", it would say something like "Total Girls" instead. Current query is as follows: SELECT state AS state, SUM(sum_girls) AS sum__sum_girls FROM birth_names WHERE ds >= '1918-05-11...
1

votes
1

answer
17

Views

How to add Different Suffix at two Different google gauges

I have a Raspberry Pi 3 running a lamp server and reading data from a AM2302 sensor the data is store at mysql database and then displaying in a webpage trough php file. the main questions is that wanna to assign different suffix at two google gauges ( one for the temperature and one for the humidit...
Elvy Collado
0

votes
0

answer
7

Views

Cash Flow Timeline Graph

I have an excel sheet with 6 columns: 3 different cash flows (30%,60% and 10% of the project value) 3 columns with their respective dates As an example, suppose total contract value is 100 USD, I receive USD 30 on 15.02.2019, USD 60 on 15.03.2020 and USD 10 on 15.03.2021. This is one row and 6 colum...
Bunty
1

votes
1

answer
116

Views

Building a ggproto geom extension

Attempting to build a new geom function here that will take a sample of points from a dataset by group, and fit a number of local regressions through the individual subsets. This would generate multiple local regression lines as samples of a full dataset. In the end generating something akin to this...
Tyler Gagne
1

votes
1

answer
30

Views

Area plot of Dataframe

i have the following Dataframe: it contains a Timestamp as index of the df and two columns, where the first column descriebes the wind direction (S = South, SE = South-East and so on). The second column descriebs the precentage during the Timestamp. EG. South-East with 87.5 % and South with 12.5 % d...
qwertz
0

votes
0

answer
4

Views

How to create a circular multi-histogram graph using the R package circlize?

I apologize in advance since I am a beginner user in R. I have a big data file, with multiple factors (15), and multiple tested samples from various group within each factor (5). I have calculated the means for each group within each factor. To simplify the presentation of my data, I would like to c...
adam.bj
-3

votes
1

answer
28

Views

Python put add sentence as image in matplotlib

I have a text: "Hello world" and a heat map as a 2d-array. I want to draw the text as a graph in order to put the heatmap on top of it. So, my question is how to convert the string "Hello world" to an image in order to plot it? For example, I want to create this .png:
okuoub
1

votes
1

answer
515

Views

How to use library(circlize) in R when matrix is not symmetric

I am trying to draw a flow map using the circlize library. My code is below and the dataset (i75_from_flow.RData) is here: https://drive.google.com/file/d/0B0hTmthiX5dpbFJFc2hfN1Zqd1k/view library(reshape) t1
Krishnan
1

votes
1

answer
1.3k

Views

Change font on google bar chart

I'm trying to change the font for everything on a google bar chart. It works for everything but the tooltip. At least, I think it's called the tooltip--it's the font that shown when you mouse over a bar. I think I'm doing it correctly according to the docs: @font-face { font-family: bebas; src: u...
wordsforthewise
1

votes
1

answer
3.3k

Views

Customize onmouseover event in Google Chart

I am using Google Developer Chart called Timeline to create some charts. I was able to render a basic version of the charts successfully, but I want to customize the onmouseover event to display certain block information. I haven't been able to find any examples of how to customize this functional...
kdubs
1

votes
3

answer
624

Views

Visualisation of the memory layout of C structs

I'm currently working on a C project that interfaces heavily with other assembly code. We're having self-made visualizations of control blocks and structs that we're using and I'm locking for a process on how to automate this process. Since we have a C struct equivalency for every assembly control b...
Frederik Hartmann
1

votes
1

answer
1.2k

Views

Google chart array - Invalid row type for row 0

Working with the Google Charts API for the first time, and with everything I've got here I would imagine it works. But when I look at the Chrome console, I get an error saying invalid row type for row 0. Tried looking around for why that would happen, but I can't exactly figure it out. If it helps,...
Chiggins
1

votes
1

answer
250

Views

Can we draw google chart with two y-axis one with top and other with bottom, with same x-axis?

I need to use google chart with two y-axis and one x-axis, like (https://en.wikipedia.org/wiki/Spirometry#/media/File:Flow-volume-loop.svg). Does google chart support this type of graph?
1

votes
1

answer
293

Views

Kibana - How to create a visualization to show a duration per user?

I have four columns : timestamp username action session_id I would like to show / visualize for each user the average duration for all sessions. That means that I have multiple lines for one session and that I have to get the duration per session to compute the average. An example of data : User...
DavidK
1

votes
1

answer
934

Views

Dates on x-axis on Google Charts

I'm trying to make a google chart with prices on the y-axis and dates on the x-axis. I don't understand why my code is not working. It is not displaying anything. In header: google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() {...
Wessi
1

votes
1

answer
49

Views

Using the select tag in React and working with state to toggle between datasets with React Charts

I'm using React Charts. I have a line chart and I'd like to be able to switch between 2 sets of data. Using the tag I made a dropdown. Take a look at a live example: https://codesandbox.io/s/mm2vnz6869 Go to the dropdown and switch to "Revenue". Notice that it switches to the other set of data as d...
fromspace
1

votes
1

answer
85

Views

How to style google table chart column containing specific values

There are five kind of values in status column- {none, active, hold,...}. So I want to make "active" as green in color and "hold" in yellow color etc. ' And Similarly in Days Left column, values less than 10 should be red in color. var f_div = document.createElement("div"); f_div.id = "filter_div11...
Abdul Malik
1

votes
1

answer
39

Views

R Highcharter map with hc_motion

I am trying to use the highcharter in R to create a motion map like this one http://jkunst.com/r/adding-motion-to-choropleths/ But I have a problem: the data is not visualized df% do(item = list( fips = first(.$fips), sequence = .$value, value = first(.$value))) %>% .$item url % hc_add_theme(hc_...
jyjek
1

votes
1

answer
21.5k

Views

Google Chart: Data column(s) for axis #0 cannot be of type string

I'm having a really weird problem with a Google Chart that I'm displaying on my webpage. When I run the code locally on my Mac, everything works, and the graph displays with no error. However, when I run the same app on the AWS server I'm testing with, I get the following error message and no graph...
Harley Sugarman
1

votes
1

answer
552

Views

Google LineChart does not display a single value

I parse CSV text files and generate HTML file with several Google line charts by a perl script. This works well, except for the cases, when I have just a signle one value of data: The value of 27.4 isn't displayed. The code of my web page is below, just open it in a browser and you will see the prob...
1

votes
1

answer
1.4k

Views

Google line chart(interactive) api - how we fill different background colors on specified areas

I have a requirement to fill background color horizontally in google line chart on specified area. I have looked all the api but didn't get a solution. Google image chart(I thinks it is deprecated) has some property but I am using interactive chart. I am just attaching an image that I actually want...
Rahul PK
1

votes
2

answer
758

Views

Display Google pie chart when mouse hover

I want to display my chart when the mouse is hover some element. Everything works fine except I can't stop the slideToggle returns its original position. Once the mouse is "out-of-target" it contracts, but if the mouse still at the chart it should stay appearing. $(document).ready(function () { $("...
BrOSs
1

votes
1

answer
2.2k

Views

ggplot2 2d Density Weights

I'm trying to plot some data with 2d density contours using ggplot2 in R. I'm getting one slightly odd result. First I set up my ggplot object: p
Tumbledown
1

votes
2

answer
512

Views

use current element in function at jquery plugin

This is my plug-in use for draw google line chart. (function( $ ) { $.fn.loadLineChart = function(dataArr, title) { google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(function() { drawChart(dataArr, title) }); function drawChart(dataArr, title) { var data = google...
Dinuka Thilanga
1

votes
2

answer
263

Views

Google Visualization not appearing in heroku production

I have implemented the google_visualr gem and it works perfectly in development. However when I push to heroku the visualization does not show up. All the javascript is present and there is no error or indication in the app logs. Here is the javascript that is generated. It's exactly the same as dev...
Mike Simmons
1

votes
1

answer
907

Views

Visualizing the pass traffic data with Chord Diagram

I have a pass traffic data between players, here's the data, first column and first row indicate the Player Numbers. I want to visualize this data like Uber Rides. I think it was built with Chord Diagram from Bostock's. Since I almost have no experience in JavaScript, I just don't know where to begi...
forochelian
1

votes
1

answer
4.1k

Views

Google Charts Annotated Time Line - adjust y-axis on zoom

I am using the annotated time line chart in google charts API. I have a long time line of data (20 years) and range of the data goes from about 0 to 900,000 (see picture) If you zoom on the most recent year, the max from this set is only about 400,000. So when we zoom in, I don't need the y-axis...
jeffery_the_wind
1

votes
1

answer
1k

Views

How to bubble chart aligned bottom and stick to each other

I would like to ask if there is a way to achieve the layout and arrangement of the circles on the image. I would like create a chart of series of circles that are link together and all aligned in the bottom.
Clannad System
1

votes
1

answer
1.2k

Views

Layering in Graphviz using Dot Language

I am working on a dot file to present the layering for nodes. The figure I have is this one. (sorry, I do not have enough reputation to post images..) http://www.flickr.com/photos/[email protected]/8473003861/in/photostream/lightbox/ However, I want the trees (blue nodes) not to be compressed and occup...
Neverfaraway
1

votes
1

answer
150

Views

How to return a string in c# as soon as called.?

This is a sample of google charts.. I am using c#.net.. What should I do in C# to return a string in place of getData.php here.. function drawChart() { var jsonData = $.ajax({ url: "getData.php", dataType:"json", async: false }).responseText; I have tried to work it out using class but it didn't wor...
bhavikp7
1

votes
1

answer
2.4k

Views

Multiple Plots in Mayavi

MATLAB has a hold function (if I remember correctly, it's been a while) to plot several things on the same "graph"/window. Is there anyway to do this in Mayavi? I'd like to visualize several realizations of a calculation, and have them all on the same graph. But I haven't been able to figure it out...
Kitchi
1

votes
1

answer
513

Views

d3. Missing data. Only plotting the initial value in each group

I'm building upon the very nice d3 example produced here http://2011.12devsofxmas.co.uk/2012/01/data-visualisation/ and I'm still in the exploratory phase, figuring out what all the bits of code in the original version do, and how to adapt it to accomplish my visualization goals. Here is a block of...
Nate Miller
1

votes
4

answer
1.7k

Views

Easy way to see if DataView is empty?

Using the Google visualization api, is there an easy way to see if a DataView is empty? https://developers.google.com/chart/interactive/docs/reference#DataView I can see perhaps using dataView.getValue(0, 1) etc to check for nulls, but it also contains column headings. I'm guessing it's tricky as th...
Alex KeySmith
1

votes
1

answer
390

Views

drawing world map with provinces

I want to draw a geochart map of the world together with US states and canadian provinces. By default it is set that United States and Canada are shown on the map as a single country without states borders, like this: http://upload.wikimedia.org/wikipedia/commons/1/11/World_map_ICC_member_states.png...
mik.ro
1

votes
1

answer
134

Views

Customizing a heatmap in R

I have the following code in R to create a simple heatmap. data
Kaleb
1

votes
1

answer
404

Views

Firefox 20 vs Google charts - getValue oddness

Well here's an odd one... The code snippet below is working perfectly in Chrome, IE8 and Safari. Until last week (I'm told by users...) it was working in Firefox. It's no longer working in FF 20.0.1 var data = google.visualization.arrayToDataTable(briefData); var chart = new google.visualization.Bar...
PerryW
1

votes
1

answer
4.4k

Views

Matlab: changing font size on xlabel and ylabel

I am doing the following (this is a simple example to illustrate the problem): a = [1,3,4]; b = [1,4,5]; plot(a,b,'LineWidth',4); xlabel('recall','FontSize',35); ylabel('precision','FontSize',4); and it produces: As you can see the 'FontSize' is having no effect. I have also got the properties of th...
Aly

View additional questions