Export to svg
#1942
Replies: 1 comment 1 reply
-
Ok setting geometrysvg again solved it.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When exporting chart to svg, it will not export custom svg points. Instead it will use default circles. Assuming you have your own class for points generation.
`With DirectCast(series, LineSeries(Of DateTimePoint, CustomChartPointVisual))
.GeometrySvg = CInt(cdef.SeriesFormatting.GeometryShape)
.GeometrySize = cdef.SeriesFormatting.GeometrySize
.GeometryStroke = If(cdef.SeriesFormatting.GeometryStrokeThickness.HasValue, New SolidColorPaint(ConvertColorToSKColor(cdef.SeriesFormatting.GeometryStrokeColor).WithAlpha(cdef.SeriesFormatting.GeometryStrokeTransparency)) With {.StrokeThickness = cdef.SeriesFormatting.GeometryStrokeThickness}, Nothing)
.GeometryFill = If(cdef.SeriesFormatting.GeometryFillColor.HasValue, New SolidColorPaint(ConvertColorToSKColor(cdef.SeriesFormatting.GeometryFillColor).WithAlpha(cdef.SeriesFormatting.GeometryFillTransparency)), Nothing)
.LineSmoothness = cdef.SeriesFormatting.LineSmoothness
.IsHoverable = False
.Stroke = If(cdef.SeriesFormatting.LineStrokeThickness.HasValue, New SolidColorPaint(ConvertColorToSKColor(cdef.SeriesFormatting.LineStrokeColor).WithAlpha(cdef.SeriesFormatting.LineStrokeTransparency)) With {.StrokeThickness = cdef.SeriesFormatting.LineStrokeThickness}, Nothing)
.Fill = If(cdef.SeriesFormatting.AreaFillColor.HasValue, New SolidColorPaint(ConvertColorToSKColor(cdef.SeriesFormatting.AreaFillColor).WithAlpha(cdef.SeriesFormatting.AreaFillTransparency)), Nothing)
.ScalesYAt = ScalesYAt
End With
This is plotted chart:

And saved to svg chart:

Beta Was this translation helpful? Give feedback.
All reactions