faerun-python
faerun-python copied to clipboard
Fix invalid tree coordinates and series colors in Python output
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 tocreate_data()
method to avoid overlap with scale variable in the same method - version bump
- fixed initialization of the array
output[name]["colors"]
increate_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.