charts

How to remove weekend datetime gaps from x-axis of a financial chart?

跟風遠走 提交于 2020-08-23 07:54:08
问题 I have a use case where I pull and plot Forex data in the form of ask and bid on the graph and this is based on minute, hour or day candlesticks and I am only plotting the closing value for bid and ask as a spline . Issue The endpoints that I am using their Forex data feed is not available from Friday 8pm to Sunday 9pm . Let's say I have the following use case Plot a 200 data points (i.e. hourly candle) on the graph at a time, on new candle phase out the oldest and plot the newest The X-Axis

Missing pixel where the axes touch in ggplot2

好久不见. 提交于 2020-08-19 14:48:36
问题 I've noticed that ggplot2 leaves a small gap between the x and the y axes. Consider the following code: require(ggplot2, quietly=TRUE) axisLines = element_line(color="black", size = 2) p= ggplot(BOD, aes(x=Time, y=demand)) + geom_line() + theme(axis.line.x = axisLines, axis.line.y = axisLines, panel.background = element_blank()) p The result shows the ugly "missing corner" in graphs (emphasized with a red circle). I have not seen a ggplot example where this doesn't happen (however, lots of

Missing pixel where the axes touch in ggplot2

浪子不回头ぞ 提交于 2020-08-19 14:41:43
问题 I've noticed that ggplot2 leaves a small gap between the x and the y axes. Consider the following code: require(ggplot2, quietly=TRUE) axisLines = element_line(color="black", size = 2) p= ggplot(BOD, aes(x=Time, y=demand)) + geom_line() + theme(axis.line.x = axisLines, axis.line.y = axisLines, panel.background = element_blank()) p The result shows the ugly "missing corner" in graphs (emphasized with a red circle). I have not seen a ggplot example where this doesn't happen (however, lots of

Missing pixel where the axes touch in ggplot2

南笙酒味 提交于 2020-08-19 14:32:41
问题 I've noticed that ggplot2 leaves a small gap between the x and the y axes. Consider the following code: require(ggplot2, quietly=TRUE) axisLines = element_line(color="black", size = 2) p= ggplot(BOD, aes(x=Time, y=demand)) + geom_line() + theme(axis.line.x = axisLines, axis.line.y = axisLines, panel.background = element_blank()) p The result shows the ugly "missing corner" in graphs (emphasized with a red circle). I have not seen a ggplot example where this doesn't happen (however, lots of

Altair - how to show a dataframe column as label with its respective color

你。 提交于 2020-08-10 18:51:58
问题 I am trying to show on an Area Chart the column name(s) I selected from a Dataframe as label, along with its respective color using Altair. The problem is that every time I do it, the chart disappear and I can't customize the colors based on a list of hex Codes. Is there any way to achieve this? import altair as alt import pandas as pd import os df = { 'Month': ['Apr', 'May'], 'Status': ['Working', 'Complete'], 'Revenue': [1000, 2000], 'Profit': [500, 600] } df = pd.DataFrame(df) hexList = [

LiveCharts - plotting x&y from lists

余生颓废 提交于 2020-08-09 02:45:10
问题 I have four lists (x1List, y1List, x2List, y2List) which hold 1000 values each, i want to plot these lists as x & y values using LiveCharts. i understand how to plot the y values using; new LineSeries { Title = "Series1", Values = y1List.AsChartValues(), PointGeometry = null }, new LineSeries { Title = "Series2", Values = y2List.AsChartValues(), PointGeometry = null }, I don't understand how to apply the x values to their respective series. I'm new to c# so apologies if this is something

LiveCharts - plotting x&y from lists

本秂侑毒 提交于 2020-08-09 02:44:29
问题 I have four lists (x1List, y1List, x2List, y2List) which hold 1000 values each, i want to plot these lists as x & y values using LiveCharts. i understand how to plot the y values using; new LineSeries { Title = "Series1", Values = y1List.AsChartValues(), PointGeometry = null }, new LineSeries { Title = "Series2", Values = y2List.AsChartValues(), PointGeometry = null }, I don't understand how to apply the x values to their respective series. I'm new to c# so apologies if this is something

Flutter Packages Get Failed

十年热恋 提交于 2020-08-09 01:33:27
问题 I am trying to add this library to my flutter project: https://pub.dartlang.org/packages/charts_flutter#-installing-tab- When I add the dependency to my pubspec.yaml file and hit packages get, I get the following error: The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297. Because charts_flutter >=0.6.0 depends on charts_common >=0.6.0 which requires SDK version >=2.1.0 <3.0.0, charts_flutter >=0.6.0 is forbidden. So, because undaunted_golf_flutter depends on charts_flutter ^0.6.0

Flutter Packages Get Failed

烈酒焚心 提交于 2020-08-09 01:32:07
问题 I am trying to add this library to my flutter project: https://pub.dartlang.org/packages/charts_flutter#-installing-tab- When I add the dependency to my pubspec.yaml file and hit packages get, I get the following error: The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297. Because charts_flutter >=0.6.0 depends on charts_common >=0.6.0 which requires SDK version >=2.1.0 <3.0.0, charts_flutter >=0.6.0 is forbidden. So, because undaunted_golf_flutter depends on charts_flutter ^0.6.0

Flutter Packages Get Failed

半世苍凉 提交于 2020-08-09 01:31:03
问题 I am trying to add this library to my flutter project: https://pub.dartlang.org/packages/charts_flutter#-installing-tab- When I add the dependency to my pubspec.yaml file and hit packages get, I get the following error: The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297. Because charts_flutter >=0.6.0 depends on charts_common >=0.6.0 which requires SDK version >=2.1.0 <3.0.0, charts_flutter >=0.6.0 is forbidden. So, because undaunted_golf_flutter depends on charts_flutter ^0.6.0