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

只有折线图, 有没有曲线图啊, 还有能不能加个阴影? #4

Closed
celiyawong opened this issue Jul 24, 2019 · 1 comment
Closed

Comments

@celiyawong
Copy link

同上

@JayavigneshwaranG
Copy link
Collaborator

Hi @celiyawong ,

Thanks for your interest in Syncfusion Flutter widgets.

There is no built-in support to render shadow for line chart. But you can achieve this in the sample level by following the below steps.
• Extend new class named ‘CustomLineSeries’ from ‘LineSeries’ and ‘CustomLineSegment’ from ‘LineSegment’
• Override the OnPaint method and add the code for rendering line shadow
• Return the ‘CustomLineSegment’ in ‘createSegment’ method and assign it to the chart series.

We have attached the sample in the below link for your reference. Please refer main.dart file in lib folder.
https://www.syncfusion.com/downloads/support/directtrac/general/ze/LINECH~1933419935.zip

Also, you can render curved lines using spline chart. Please refer the below sample code.
https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/cartesian_charts/spline_series/default_spline_chart.dart

Thus I am closing this issue. You can also contact us further through our support forum or Direct-Trac. We are always happy to assist you!

Note – I work for Syncfusion.

Thanks,
Jayavigneshwaran

@M0in4 M0in4 mentioned this issue Jan 13, 2022
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

2 participants