faerun-python icon indicating copy to clipboard operation
faerun-python copied to clipboard

Fix invalid tree coordinates and series colors in Python output

Open grayver opened this issue 2 years ago • 0 comments

This PR addresses #10 by fixing create_python_data() variable issue and adding "utf-8" as a default HTML and JS output encoding. Also it fixes color array initialization in create_python_data() so output Python data contains valid series colors. Details:

  • Duplicate style removed
  • "utf-8" set as default encoding for output HTML and JS files - this allows using unicode characters in labels for WIndows
  • variable "s" renamed to "series" for loop in create_python_data() method similar to create_data() method to avoid overlap with scale variable in the same method
  • version bump
  • fixed initialization of the array output[name]["colors"] in create_python_data() - currently it initializes array with the same dictionary reference, so setting values for any series affects all other series. The fix makes those changes independent and provides valid series color output for Python.

grayver avatar Nov 07 '22 13:11 grayver