Releases: Esri/cedar
Releases · Esri/cedar
v1.0.0-beta.5
Added
- One can now add a
style
property which containspadding
andpie
properties todefinition
Changed
- popup text for pie charts has a new format
Treat arcgis-rest-js as external
1.0.0-beta.4
Changed
- treat arcgis-rest-js libraries as external
More inline data and legend options; Fix pie chart defaults; lots of housekeeping
Pre-release
Cedar
Added
- One can now inline data as an array of attributes or array of objects
- legend.position determines the location (top, bottom, right, left) of a chart legend
Changed
- use @esri/arcgis-rest-feature-service and remove query functions
- updated tests and added mocks for 100% code coverage
- using yarn workspaces for monorepo
- added links for codepens for working with maps, etc to README
- legend.enable is now legend.visible
- Text colors have been changed to pass color contrast ratio on white backgrounds
- Pie charts default to legend off and inner radius 0
Fixed
- remove extraneous dependency on amcharts in @esri/cedar
- Specifications that are passed in are actually supported
- fixed join logic so that records weren't getting assigned to wrong category
- fixed Using Cedar instructions in the README
- Specifications that are passed in are actually supported
Definition legend
Added
- cedar definition legend property hides/shows chart legend
Changed
- release script copies root README to packages/cedar before publishi
ng - docs page doesn't look like it was beat by ugly stick
- arcgis-rest-request is no longer included in Cedar, instead it is npm installed
- legend is now a prop that can be passed in through the definition or off of the chart object directly
v1 Beta
Use (a copy of) arcgis-rest-js for queries
Changed
- refactored to use arcgis-rest-request for queries (copied code until it is released)
Fixed
- query bbox to geometry conversion and added tests
Chart tweaks for Hub
Fixed
- if categoryField is null, amCharts shows [Object object] as label
Changed
- bar chart doesn't show cursor (value) on x-axis by default
- don't show labels by default on series
Fix for..in bug in deepMerge()
- converted for..in loop on array to forEach
- added a hasOwnProperty check when using for..in on objects
Multi-series, multiple datasets, amCharts, and so much more!
This is the first release of @esri/cedar! 🎉
BREAKING CHANGES
JSON API
- support multi-series charts
- support joining multiple datasets
Charts & chart types
- use amCharts as the charting library to facilitate the above
- new "area" chart type
- new "radar" chart type
- default chart theme is based on the calcite color scheme
Runtime (JavaScript) API
- expose a new
cedar
namespace instead ofCedar()
constructor as the global - chart constructor (instead of
.show()
) establishes relationship to DOM node (const chart = new cedar.Chart('#chartDiv', chartDefinition)
) - async operations like
.show()
return promises instead of taking callbacks - new fluent API for chaining definition property setters and function calls (
chart.type('bar').datasets(datasets).series(series).show()
) - remove
.transform()
in favor of using promises to modify query responses as needed:
chart.query()
.then(queryResponse => {
let modifiedResponse;
// TODO: modify response
return chart.updateData(modifiedResponse).render();
});
See the v1.x README for details on how to install and use @esri/cedar.
See the issues related to this release for more details.
Why alpha?
The only v0.x feature that we haven't addressed in v1 yet is events (i.e. exposing the chart's mouse clicks, movement, etc). Once we address that and these other issues, v1 will move into beta.
Here are the remaining issues that make up the v1.x roadmap.