charts

How to make Plotly Pie charts the same size always

How to make Plotly Pie charts the same size always Question: I’m generating different Pie charts that have legends of different lengths. The problem is that when the legend is long, the Pie chart is smaller, I’d like to make the Pie chart always the same size. This is my code: pie_chart = go.Pie(labels=labels, values=y) …

Total answers: 2

Setting Y Axis values on matplotlib chart, incrementing

Setting Y Axis values on matplotlib chart, incrementing Question: Please may someone assist me on this. I am trying to add Y Axis values to my matplotlib chart so the chart looks like this Excel Chart: However, on my matplotlib chart, the Y Axis values are from 0-6: Is there some code I have left …

Total answers: 1

python linear chart with min max and Avg

python linear chart with min max and Avg Question: I wonder how in Python I can create a line graph that shows the maximum, minimum and the average for a given epoch. I don’t know much about this language and how to make one x have 3 y values. I would like to create something …

Total answers: 1

Altair – how to add lines inside chart

Altair – how to add lines inside chart Question: I am trying to add specific lines to a line graph in Altair, going from text to a certain point on the graph. I have added my current output here: I am trying to end up with a chart like the one below, but I can’t …

Total answers: 1

How to show all Y-Axis Labels in Matplotlib in TimeLine Chart?

How to show all Y-Axis Labels in Matplotlib in TimeLine Chart? Question: In the below code I plotted a time-line chart but I don’t know how can I show all Y-axis values by integer type and standard interval. Does anyone has any idea? code link: https://colab.research.google.com/drive/1Fq91PXlylJMKh6oUpysM95gpLwBfUcGx?usp=sharing from matplotlib.patches import Patch import matplotlib import matplotlib.pyplot as …

Total answers: 1

Available data in TradingView's exported chart data file

Available data in TradingView's exported chart data file Question: To back-test a trading strategy, I use the replay feature in trading view and mark my trades by adding a "long position" or "short position" from the left panel. Like this: I need to save the data (chart data including the positions, or any other drawing …

Total answers: 1

Adding threshold lines in financial plots in plotly in python

Adding threshold lines in financial plots in plotly in python Question: I am plotting financial subplots in Plotly in python which I am able to successfully. But I need threshold lines (horizontal lines) to be plotted in the second sub plot but not able to d the same. But I am able to plot threshold …

Total answers: 2

Plotly: How to color the fill between two lines based on a condition?

Plotly: How to color the fill between two lines based on a condition? Question: I want to add a fill colour between the black and blue line on my Plotly chart. I am aware this can be accomplished already with Plotly but I am not sure how to fill the chart with two colours based …

Total answers: 3