fslaborg / fslaborg/FSharp.Charting

Side effect when settting PropertyDefaults for Charting.Grid to Enabled = false

Open
#5 2 comments 0 reactions 0 assignees View on GitHub
Up for grabs
Dominant language
F#
Stars
209
Forks
65
PR merge metrics
No merged PRs in 30d

Description

When setting the PropertyDefaults for Charting.Grid to Enabled = false, it will lead to Charting.TickMark Enabled set to false as well.
An additional type check might do the trick:
let internal applyDefaults (chartType:SeriesChartType, target:'a, targetParentType:Type option, targetType:Type, property:PropertyInfo) =
....
(propDefault.ParentType |> Option.forall (fun parentType -> parentType = targetType)) &&
....

PS: This is my first command at all. I hope it is properly stated...Plus many thanks for providing such a great library...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.