# Migration

# Notes for migrating from olly-time-series package to @splunk/visualization-canvas

- Replace the usage of deprecated package name `@splunk/olly-time-series` with `@splunk/visualization-canvas` in consuming application's `package.json` and update the corresponding package version to latest.

- All usages of `TimeSeriesChart` componet should work as it is, except for one breaking change noted below.

### Breaking change

- No separate `customLocale` prop is allowed for TimeSeriesChart component. It is now consolidated with `userLocale` prop and any custom `LocaleInfo` object can be passed down via `userLocale` prop.
- If the consuming application relies on `LocaleInfo` object from olly-service `useLocaleSingleton()` method, it needs to be fetched from the application logic `const userLocale = useLocaleSingleton();` and passed down via `userLocale` prop of TimeSeriesChart component.
- If nothing is explicitly passed down for `userLocale` prop, by default user's browser timezone and twelve hour format is used for `LocaleInfo` object properties.
