Is it possible using IGChartView to somehow retrieve the data points that make up the automatically generated trendline?
In my scenario, I want to show a custom marker/annotation at the beginning of the generated trendline. But since I don't know what the data points of the trendline are, I end up having to generate my trendline points programmatically and just display a spline line. Then I can display a custom marker, for example, on the second data point of the line, and no markers anywhere else. Basically it's an identifier of the line that displays on the line itself.
Any ideas would be helpful. Thanks.
Hi Jeff,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
You can log this as a new product idea from the following site; http://ideas.infragistics.com
There are many benefits to submitting a product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
1. Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).
2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
3. Add your product idea and be sure to be specific and provide as much detail as possible. Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
Yes, my main goal was to place a marker on the start/end/or possibly both ends of the trendline.
In my particular scenario, I generate a scatter series quadratic trendline, whose series shows up in the legend, so no trendline marker is necessary. Additionally, I have historical options that can append additional series and trendlines to the same chart. In those historical cases, I don't add those series' to the legend, use the same series color (w/ a lower alpha), but still want to identify the lines somehow. That's where the start/end markers come into play.
Is your main goal to have a start (and possibly an end) marker on a trendline? Or would you potentially want to have some markers somewhere along the trendline, as well?There are a couple of reasons trendlines don't have markers. First of all, most trendlines will have a different number of points than their series. Linear trendlines will only have two points, moving average will typically match the number of points in the series, and a polynomial trendline will likely have more points to get a smooth curve. The number of points here depends on the trendline type. Markers in a series, on the other hand tend to represent the number of points in the underlying data source. It's kind of tricky to provide a set of meaningful markers on a trendline... unless it's just the start and end points. In any case, I'm not trying to discredit this as a valid feature request, just wanted to get some more info.
Thanks.
Thanks for your response.
Maybe in the future some way could be added to access the trendline data somehow. Perhaps a viewForMarkerInSeriesTrendline, or some .trendlineMarker property in the existing viewForMarkerInSeries?