Questions tagged [dygraphs]
The dygraphs JavaScript library is for producing interactive time series charts.
892
questions
0
votes
0
answers
27
views
Dygraphs with Angular 13 and Ionic 6
I'm trying to use Dygraphs in a Ionic app, but I got a blank canvas without data and no errors.
Did someone make it works with recent angular/ionic versions ?
start.page.ts
import {AfterViewInit, ...
0
votes
0
answers
12
views
what is the sequence of palette color in dyRibbon?
Consider these questions around a reprex using dyRibbon function of dygraphs package in R.
Q1. Why do we need 4 colors for a 3 ribbon display? Why is the first one always ignored?
Q2. How is the ...
0
votes
0
answers
7
views
how to match widths of two html dygraph plots while using htmltools::tagList
I use the excellent dygraphs package in R all the time. The synchronized plots work great but I am having difficulty in keeping the widths of the two synchronized plots identical when one dygraph has ...
0
votes
0
answers
13
views
How do I print a dygraph graph?
I need to print a page that has 4 dygraphs on it. I found a previous post here about it, but it refers to this document which is 10 years old and for the life of me, I cannot get it to work.
For one ...
0
votes
0
answers
24
views
r dygraph plot not correctly displayed in right to left Shiny app
I have made a shiny app in Persian language which the Shiny admin css has been changed completely to rtl direction. I have only a problem with my dygraph plot which not displayed correctly. My ...
2
votes
1
answer
40
views
dygraphs doesn't show the line for more than 10,000 datapoints
I am trying to plot a graph using dygraph function for a dataset with more than 100,000 datapoints. As soon as I try it the graph appears empty. I tried to shorten the dataset and it turns out that ...
2
votes
1
answer
83
views
How to display all the months (axis ticks/breaks) on the following dygraph? (R)
Following R code and data provided, uses the dygraph library (R interface for the js dygraph)
library(xts)
library(htmlwidgets)
library(dygraphs)
date <- c("2015-01-01", "2015-02-01&...
0
votes
0
answers
11
views
Dygraphs HTML: Can I always display the LATEST data point (time series line chart)
I am making a widget for my dashboard. It is a US 10 year treasury market yield.
I have completed most of flow. (FRED raw data -> Google Sheet (App Script) -> HTML/Dygraphs
However, in the ...
1
vote
1
answer
50
views
Typescript dynamic type []
i'm new to Typescript and I stubbled an issue that I have no answer for.
Basically I am trying to feed data to Dygraph chart which takes [Date, number, number,...]. The thing is I receive multiple ...
0
votes
1
answer
26
views
dygraph y2 axis was never shown
I am build a service based list (php and js/jquery) with dygraphs. I need to show always both y-Scala. At the first hand is to show different values in the same diagram, on the other hand I need the ...
-1
votes
1
answer
124
views
How to highlight time series in some date ranges in R
I need to highlight some dates ranges in my time series chart, but I can´t go ahead.
The dataset used is following:
library(dplyr)
library(xts)
library(zoo)
df <- read.csv("https://github.com/...
1
vote
1
answer
72
views
How to change date axis labels in dygraphs
I have a xts object with 3 columns and quarterly data. I would like to format my date labels with "1QYY" and successively. Now is showing "mm yyyy".
I did not understand how to use ...
0
votes
1
answer
24
views
interractionModel not updating on updateOption() method
I try to update my interractionModel depending on a variable 'editMode' (which is a boolean)
I use 2 interractionModel : nonInteractiveModel_ and defaultModel. My goal is to disable all interaction ...
1
vote
2
answers
56
views
Is there a way to highlight the legend of a dygraph in R
The problem can be seen in any multiple variable plot of dygraph when the colors are close to each other, and especially if you are like me who is not very good in identifying small differences in ...
0
votes
0
answers
15
views
Olney Font for Dygraphs on Mobile
I am using the dygraphs javascript library in a mobile app. I have embedded the Olney font into my mobile app and am using it find.
I am using Xamarin with the built in browser to display my graphs.
I ...
0
votes
0
answers
59
views
Dygraph, parsing PHP/MYSQL output into chart
I'm attempting to use PHP to drag data from my MYSQL db (home IoT project) into a dygraph chart directly (rather than extracting, parsing into CSV file and then displaying, which seems unwieldy). I ...
0
votes
0
answers
41
views
R Dygraphs hide series from legend
I am creating a dygraph in R and am trying to completely hide one or more series from the legend. I have tried writing a custom js function (see below) to use with the legendFormatter, but none of ...
0
votes
0
answers
54
views
dygraph charts in downloadHandler
I am trying to get dygraph charts via downloadHandler into a PDF file and I am unabe to. Not sure if it is because the gridExtra package is unable to handle html objects. Any help here is appreciated ...
0
votes
1
answer
30
views
How to get a invisible series data value in callback
Take the following csv data for example,
Index,Time,Value
0,2021/7/30 16:25:09.408,-74.63
1,2021/7/30 16:25:09.421,-75.25
2,2021/7/30 16:25:09.621,-76.13
3,2021/7/30 16:25:09.821,-76.19
I want to get ...
0
votes
0
answers
21
views
IN DYGRAPH, I want to show all data points permanently on the canvas (in a column chart), on top of the columns? Thank you
I specifically need to do this in Dygraph by programming, rather than picking a point and drawing a circle on the underlying canvas....if this is not a built-in option, please advise how this might be ...
0
votes
0
answers
42
views
Cannot view dygraph chart of two series in the same y axis. Only one of if the two is shown
I am using dygraph js and css to visualize a two series graph from a csv.
The first column of the csv contains dates while the other two numbers.
I use the following code:
g2 = new Dygraph(
...
0
votes
0
answers
18
views
I am using dygraphs 1.1.1 and the colors array isn't working
I am using dygraphs 1.1.1 combined in an embedded application. I would upgrade to the newer 2.x version, but I can't find a combined version and it doesn't seem to work at all where as the 1.1.1 ...
0
votes
0
answers
81
views
R Shiny Dygraph Error: Unsupported type passed to argument 'data'
I am using the following code segment to filter my dataset based on three user inputs.
Then creating a time series of the remaining data and plotting the results using dygraph.
server<- ...
1
vote
1
answer
70
views
How to set selected range in range selector in dygraph
By default, dygraph select the whole date range in its range selector:
Is there an option to set the default selected range in dygraph? I've been searching for a while and can't find any similar ...
0
votes
1
answer
65
views
How to display large numbers in y-axis using dygraph
I'm passing a data to dygraph with a million value on y-axis but it is displayed with "e+" suffix. Is there a way to format y-axis display to "3000000" or "3M" instead?
...
0
votes
0
answers
34
views
dygraphs shading R: X axis shading (vertical shading) based on Y values
I am trying to use dygraphs::dyShading to get "vertical shades" based on the values on Y.
For example, this code shades horizontally when Y values are above 53.
dygraph(nhtemp, main = &...
-1
votes
1
answer
17
views
dygraph chart validation via ui automation
I want to validate dygraph charts using UI automation. Values are displayed on mouse hover.
Value gets displayed under span tag on mouse hover. I want to fetch these values from protractor ui test so ...
0
votes
0
answers
60
views
Limiting zoom granularity in Dygraph using R
I'm creating a dygraph time series in Shiny App using weekly data and I'd like to be able to limit the zoom on the x-axis so that a user cannot go smaller than the weekly level. When zoomed-out fully, ...
0
votes
0
answers
68
views
Limiting Number of Labels on Dygraph (y-axis)
I am making an interactive graph in R using the Dygraphs package—a JavaScript charting library.
After much painstaking effort, I finally formatted my dates just right, but now I realized that there ...
1
vote
1
answer
156
views
How to add a label to a dygraph mouseover in R?
I have been trying to plot a time series using dygraph in R. It seems that we can only pass in a dataframe with the dates and their values. All other columns will be automatically ignored. Here I have ...
0
votes
1
answer
70
views
How to reduce the distance between tooltip and datapoint or cursor
I want to reduce the distance between tooltip and actual data point or cursor in dygraph.
Tried this
g = new Dygraph(
document.getElementById("demodiv_one_right"), [
[1, 10, 100],
[2, 20,...
0
votes
0
answers
41
views
DY-graph xaxis range labeling
I am trying to label xaxis lable range in uniform format. currently I am getting the xaxis labels as below.
But I want this to be represented in format like "20:00 21:00 23:00 'next day Date' 01:...
0
votes
1
answer
41
views
Two data series, graph lines are not connected :(
When I display a graph with one dataset, line-graph is nice and pretty.
When I display a graph with 2 datasets, lines are not connected on intersections.
2021-03-02 19:44:08.000,1,
2021-03-02 19:44:09....
1
vote
0
answers
34
views
How to show qualitative values when hovering on dygraph in R-Shiny?
I have a time-series of quantitative and qualitative data. I am trying to plot a time-series of the data with dyGraphs, but I also want to be able to view the qualitative data when I hover over a ...
0
votes
1
answer
40
views
dygraph floating points for x-axis values
I'm not able to make dygraph plotting a graph with my data. The data consists of ~16,000 sets, but it doesn't work with just a couple of points either.
Example of data:
WL;Part1;Part2
187,3284416;-...
0
votes
1
answer
30
views
How to get errorbars and roller window in dygraphs when using an array as the input?
I have the following code which generates a dummy time series chart using dygraphs:
<script src="//cdnjs.cloudflare.com/ajax/libs/dygraph/2.1.0/dygraph.min.js"></script>
<link ...
2
votes
1
answer
79
views
Conditionally shade regions of dygraph time series when NA
I'd like to add background shading where values in a time series are NA, without needing to specify the date range. The basic shading option in dygraphs works like this:
library(dygraphs)
dygraph(...
1
vote
0
answers
52
views
Rotate chart dygraphs
Sorry for my English. How to rotate the chart 90deg using the latest version of the dygraphs. I managed to rotate the graph and zoom functionality using this version of https://dygraphs.com/1.1.0-rc/...
1
vote
2
answers
146
views
How to scrape elements from a HTML Dygraph?
I'm trying to fetch all the datapoints from this website https://bitinfocharts.com/comparison/bitcoin-transactions.html using BeautifulSoup and requests in Python. So far I have the code:
session = ...
0
votes
1
answer
69
views
Dygraphs in collapsed panel not rendering correctly
I would like to render a dygraphs graph in a collapsed bootstrap panel. Once the user shows the panel the graph should be visible.
My problem is that, when the initially collapsed panel appears, the ...
1
vote
1
answer
128
views
dygraphs Reverse y-axis with dynamic maximum (lower value)
What I would like to have: a dygraphs plot with reverse y-axis as shown in the documentation example:
https://github.com/danvk/dygraphs/blob/master/tests/reverse-y-axis.html except I would like the y-...
0
votes
1
answer
35
views
Dygraphs shows one month earlier than data in R
I have a xts object in R with dates from 2018-09-01 to 2020-08-01. I'm using dyRangeSelector with dateWindow() from 2019-01-01 to 2020-08-01 and does not appear last month (August). I saw this ...
1
vote
2
answers
435
views
How save Dygraphs in R Shiny as PNG?
How to save "dygraphs" plots as PNG in R Shiny app.
library(shiny)
library(dygraphs)
ui <- shinyUI(
fluidPage(
titlePanel("How save Dygraphs in R Shiny as PNG"),
...
0
votes
1
answer
146
views
plot dygraph from a list in shiny
I wish to plot xts from a list of xts series by selecting the name of each list.
I am not understunding how reactivity and list selection works
library(zoo)
library(dygraphs)
library(xts)
d <- seq(...
0
votes
1
answer
288
views
Dygraphs in R: Plot Ribbon and mean line of different groups
I recently started working dygraphs in R, and wanted to achieve a ribbon line plot with it.
Currently, I have the below ggplot which displays a ribbon (for data from multiple batches over time) and ...
1
vote
0
answers
50
views
Dygraph outputs different date intervals for x-axis in viewer when compared to html
When I load the dygraph of the below code, the viewer presents it like this:
but when loaded into my dashboard in html it converts to this:
How do I stop it changing the date intervals and keep it ...
2
votes
1
answer
179
views
Issue with inserting a dygraph in shiny app
I'm almost done building an app to explore data published in one of my papers, and thought that it would be nice to have something a little more interactive by adding a dygraph instead of a regular ...
0
votes
1
answer
184
views
R dygraphs - plot certain content of columns
I have a csv file "fruit.csv" looking like that:
"Date","Fruit","Count"
2019-01-01,Apple,3
2019-01-01,Pear,5
2019-01-01,Banana,4
2019-02-01,Apple,4
2019-02-01,...
1
vote
0
answers
37
views
Dygraph in Phyton : How to remove label but still use its values in the graph?
I am working with Dygraph in python. I want to remove a label from the legend. If you look into the example photo attached bellow you can see "A:2.77 B:2.29". Is it possible to remove the ...
1
vote
1
answer
75
views
How can I use a checkbox to show or hide a graph that is inputed from a csv file?
So basically I have been working with some code to try and use a checkbox to hide/show a graph, the big issue is that the graph is made using dygraph and the graphs are made from a csv file's data ...