plotly / dash-daq

Control components for Dash
MIT License
141 stars 40 forks source link

Resolved Issues #89, #127, #126 and added options to add multiple colors as in issue #111 #156

Closed Karan-S-Mittal closed 3 years ago

Karan-S-Mittal commented 3 years ago

Issues fixed: #89, #111, #127, #126

Changes are listed as follows

126: change the description of props (id, disabled) in Joystick component which is copy-pasted from color picker component

127: removed the description of props (color.default) in Knob component which is misleading in docs

111: previously in Gauge component we can pass the value of color {"red": [0,5], "blue": [5,10]} but now it can passed like {"red": [[0,3], [7,10]], "blue": [3,7]} for multiple range for single color. Minor changes in colorRanges.js -> getSortedRanges() function, upgrde manageRange function if to handle 2d arrays in colorRanges.js, upgrade getSortedEntries() function to handle 2d array

89: created 2 new props onButtonStyle, offButtonStyle to manage style of PowerButton component when it turns on and off

updated demo.py to not throw warning due to dash version 2.0