Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiloOpenCloseSeries in chart #55

Closed
evangelme opened this issue Nov 15, 2020 · 1 comment
Closed

HiloOpenCloseSeries in chart #55

evangelme opened this issue Nov 15, 2020 · 1 comment

Comments

@evangelme
Copy link

i think there is a bug
if low and high and open and close are the same equal it dose not show anything
i hope u can fix this.
thank u for ur awosoome project.

@SriramKiranSenthilkumar
Copy link
Contributor

Hi @evangelme,

Greetings from Syncfusion. We have analyzed your scenario and we would like to share some information regarding the data point indication feature of the financial chart series which when enabled shows indication for datapoints when its high and low values are same or open and close values or high, low, open and close values are the same. To enable this feature, you can set the showIndicationForSameValues to true. Please check the code snippet below for reference.

SfCartesianChart(
               series: <ChartSeries>[
                 HiloOpenCloseSeries<ChartData, double>(
                     showIndicationForSameValues: true, // Indication feature enabled
                     dataSource: chartData,
                      xValueMapper: (ChartData data, _) => data.x,
                      highValueMapper: (ChartData data, _) => data.high,
                      lowValueMapper: (ChartData data, _) => data.low,
                      openValueMapper: (ChartData data, _) => data.open,
                      closeValueMapper: (ChartData data, _) => data.close)
                ]
)

The following are the types of indication when the combination of high, low, open and close values are the same for a data point.

  • In the OHLC chart, if the open and close values are same then a horizontal line will be drawn at that value by default.
  • If the high and low values are same and with showIndicationForSameValues property set to true then, a thin vertical line is drawn and if API is set to false, the line will not be drawn.

For further reference on the showIndicationForSameValues property, please check the link below.
https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/HiloOpenCloseSeries/showIndicationForSameValues.html

Please get in touch with if you would require further assistance on this.

Regards,
Sriram Kiran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants