v0.6 - Deprecated API removals and feature improvements#119
Open
v0.6 - Deprecated API removals and feature improvements#119
Conversation
This removes several categories of deprecations from `chartdraw` and `drawing`: * Constants which are expected to only have internal meaning * Functions which already have direct replacements * roboto font constant (only referenced through GetFont now)
This change updates our go version enabling: * No longer a need for min / max helpers (can use builtin min / max instead) * `slices` package support * Expanded `strings` support * github.com/golang/image@v0.30.0 update (newest version for go 1.23) Overall this provides significant advantages to our library, while still offering an old enough go version to allow easy adoption.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR stages the changes for our next API update. Included in this version:
Fontfield at the root chart options are removed, instead set the Font on either 1) as the default (SetDefaultFont) 2) On thePainteror 3) in the specific FontStyle fieldsValueFormatteron chart options removed, instead set on the seriesSeriesList[*].Label.ValueFormatterChartOption.BarHeightandBarWidthwere replaced with the singleBarSizefieldFormatTemplatewas replaced with the formatting functionLabelFormatterYAxisOption.Formatterreplaced with formatting functionValueFormatterXAxisOption.FontStyleandYAxisOption.FontStyleuse the more specific namedLabelFontStylenowTrendLine.Windowrenamed to the more accuratePeriodSeriesTrendTypeAveragerename toSeriesTrendTypeSMAchartdrawDefault fields which are expected to only be used internally have been removed (open an issue if you found any of these useful)Still to be included in release: