Skip to content

Releases: MetalBlueberry/go-plotly

v0.7.0

27 Aug 13:31
d3bd6f1
Compare
Choose a tag to compare

What's Changed

And mainly quality of life changes and code documentation.

v0.6.1

22 Aug 10:43
777acf2
Compare
Choose a tag to compare

So I realised there was a bug with arrayOk types because those couldn't be nil. So the output had a bunch of null fields.

This went unoticed first time because it doesn't seem to affect plotly, but I noticed it while inspecting generated images and I thing it is better to fix it ASAP

I also added a place holder for animations, I will be trying to add support for those soon

v0.6.0

21 Aug 17:21
ba200ef
Compare
Choose a tag to compare

This version has a few improvements

  • Adds tools to generate schema for multiple versions. This allows to decouple the plotly versions from this library
  • Get rid of Type field. Now it is determined based on the struct type. 🎉
  • Add ArrayOK compatibility. Now fileds that can either have arrays or single values will have this type so you can provide any of them. Also packed some utility tools to reduce boilerplat
  • Add Color types, To increase compatibility with fields that accept multiple values, similar to ArrayOK
  • Move types and offilne package outside generation. This allows to use the same packages for all plotly versions plus helping to keep things organised

Also fixes

  • offline Serve now serves figues over http, so problems with encoding are avoided
  • offline Show encodes the plot as base64 transparently to avoid encoding issues.

I hope you enjoy it! The migration to this version should be matter of picking the right version using the right import path. Depending on you needs.Then just go over the compile errors to replace with the right types. Check examples if you want any references of how to do it

v0.5.0 - Generate multiple plotly schemas

25 May 15:29
d03294c
Compare
Choose a tag to compare

This major improvement allows to use the same generator to produce multiple schemas.

The advantage of this approach is that we can keep improving the generator code and quickly apply all the benefits for all plotly versions. Allowing users to add more features without having to migrate plotly versions.

Thanks @PatrickVienne for the initial contribution and development 🎉

v0.4.0 -Generate schema with Go code

18 Jul 14:23
ba2cc67
Compare
Choose a tag to compare

This release replaces the previous tool to generate the code with a custom go implementation for the same purpose. This should be much easier to understand and facilitate contributions from other people (you, for example)

This version is not backward compatible, but the upgrade should be easy and automatically detected by the compiler

Most important changes

  • Code is generated with plain go.
  • Package is not named grob instead of graphic_objects to simplify usage
  • Constant variables names have been refactored to follow Go name conventions
  • Ensure that constants are generated per trace type.

Unmarshall support

25 Jun 20:10
Compare
Choose a tag to compare
Unmarshall support Pre-release
Pre-release

The highlight is that now the package supports unmarshalling figure data.

v0.1.0

14 May 17:18
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

First version