Replies: 4 comments 2 replies
-
I'm not sure what you mean by adding data into labels. Do you mean plotting externally provided signals, such as this? def init(self):
# Plot 'Signal1' column from the input dataframe
self.I(lambda col: self.data.df[col], 'Signal1') See also: #64. |
Beta Was this translation helpful? Give feedback.
-
right, but Signal1 is a string not numeric. I would just want to see it in the label for that day. |
Beta Was this translation helpful? Give feedback.
-
so just wanted to see it the label that appears when you hover over a candlestick. |
Beta Was this translation helpful? Give feedback.
-
The only two current indicator plot types are line and scatter plot. I guess for categorical variables you could also do something along the lines of: import pandas as pd
# Convert distinct labels in 'Signal1' to numbers
self.I(lambda col: pd.Categorical(self.data.df[col]).codes, 'Signal1') If you'd like to work on "label" plot type for categoricals, PR welcome. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thank you for a great library.
Can we add custom data into plot labels? I use outside signals data that I bring into the data frame like :Signal1:Long, Signal2:Short and when a few of them are in agreement I fire a trade. I would like to see the values of Signal1,Signal2 etc on the Labels in the graph.
Beta Was this translation helpful? Give feedback.
All reactions