You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set the label key of a d3plus viz config.
Current Behavior
Getting the following error:
Viz.js:347 Uncaught TypeError: _this._drawLabel(...).localeCompare is not a function
at Viz._this._legendSort (Viz.js:347)
at Array.sort (<anonymous>)
at LinePlot._default (_drawLegend.js:86)
at LinePlot._draw (Viz.js:647)
at LinePlot._draw (Plot.js:905)
at Queue.eval [as _call] (Viz.js:866)
at maybeNotify (queue.js:137)
at eval (queue.js:99)
at eval (load.js:108)
at Object.eval (request.js:118)
Expected Behavior
I want to set the
label
key of a d3plus viz config.Current Behavior
Getting the following error:
Steps to Reproduce (for bugs)
Use the following config:
Notes
You can fix this by changing
"label": d => d["Occupation"],
to"label": d => `${d["Occupation"]}`,
The text was updated successfully, but these errors were encountered: