Creating trend lines for 2 sets of datapoints #152
-
Related DiscussionHi! I am currently working on plotting two sets of datapoints on a single Chart. While I am able to create two sets of marks based on feed type, I am unable to separate the trend lines between them; I currently see a single blue line interpolating between all points, first through bottleEntries sorted by time, and then through breastfeedingEntries sorted by time. The following is my code: `struct FeedChart: View {
}` ReproductionCode included above. Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
you might need to specify the |
Beta Was this translation helpful? Give feedback.
you might need to specify the
series
parameter when creatingPointMark
orLineMark
chart elements.you can also use that to specify eg the respective colors or other chart options