Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD: Support for HA long-term statistics #208

Merged
merged 12 commits into from
Apr 22, 2022
Merged

Conversation

koying
Copy link
Contributor

@koying koying commented Sep 10, 2021

Add support for the recently added long-term statistics.
Alternative to the builtin Statistics Graph Card.

Needs long-term testing and review

@RomRider
Copy link
Owner

Thanks, I planned to implement it but don't have time at the moment so that's helpful 😊! I'll have a look as soon as possible.

@koying
Copy link
Contributor Author

koying commented Sep 10, 2021

FYI: home-assistant/core#56052

If there is no action on the core side, it might make sense to hardcode adding 1 hour to the statistics data.
For now, the PR is acting the same as the Statistics card.

@wormiedk
Copy link

wormiedk commented Dec 2, 2021

Is there any way of testing this? I would love to assist but am usure how to get it into hacs?

@aferrato
Copy link

I'm interested too, thanks.

@ondras12345
Copy link
Contributor

ondras12345 commented Dec 24, 2021

Is there any way of testing this?

This is what I did:

git clone https://github.com/koying/apexcharts-card.git apexcharts-card-koying
cd apexcharts-card-koying
git checkout addastatistics
npm install typescript --save-dev
npm run build
# the result is in dist/apexcharts-card.js

After this, you just need to copy dist/apexcharts-card.js to <configuraiton directory>/www.

@aferrato
Copy link

thank you @ondras12345, i tried, but i keep getting many typescript errors, can you post the compiled code?

@ondras12345
Copy link
Contributor

This is my build: apexcharts-card.js.txt
I had to rename it to .txt because Github wouldn't let me upload a .js file.

Needless to say, you should treat this as if it was a binary (.exe file if you're on Windows) some random guy posted on Github. I'm in no way affiliated with this project. Use it at your own risk.

@RomRider
Copy link
Owner

FYI: home-assistant/core#56052

If there is no action on the core side, it might make sense to hardcode adding 1 hour to the statistics data.
For now, the PR is acting the same as the Statistics card.

I'm going to review this over the weekend, I've seen some PR has been merged in core. Based on your comment, is there something to modify in your code to take it into account? (asking before I dive into it 😊)

@koying
Copy link
Contributor Author

koying commented Jan 21, 2022

No, it's already using the "end" time that was merged recently, afaict

@batzillm
Copy link

batzillm commented Feb 4, 2022

I wanted to test it, was able to compile it and it is getting loaded by my browser but unfortunately by adding the "use_statistics: sum"-line to the config of the series, all i get is an "value.series[0] is not a ChartCardSeriesExternalConfig; value.series[0].use_statistics is extraneous" - did i miss something in the config?
I as well tried the above posted file but with the same behaviour. BrowserCache is cleaned of course.
Any ideas?

@batzillm
Copy link

batzillm commented Feb 6, 2022

I wanted to test it, was able to compile it and it is getting loaded by my browser but unfortunately by adding the "use_statistics: sum"-line to the config of the series, all i get is an "value.series[0] is not a ChartCardSeriesExternalConfig; value.series[0].use_statistics is extraneous" - did i miss something in the config? I as well tried the above posted file but with the same behaviour. BrowserCache is cleaned of course. Any ideas?

My bad, had a typo in it.
Anyway, my old data_generator: -Graphs started giving strange graphs after switching to the new code and with my limited knwoldege of javascript i am not able to fix it. All m data_generator graphs are sometimes affected, often with different random lines and i am not able to reproduce the occurences. I will switch back to the current stable release for now. Example (random additional red lines):
grafik
Keep on the good work! The card is amazyng anyway!

@RomRider RomRider changed the base branch from master to dev April 21, 2022 19:07
@wormiedk
Copy link

wormiedk commented Apr 21, 2022

Which dev version should i install to test it?
I have quite a fra to choose from

@RomRider
Copy link
Owner

I'm currently working on merging this PR but it will require some more work. Wait a bit and you'll be able to test it out from a beta release.

@RomRider
Copy link
Owner

Could someone tell me how to easily get a sensor with long term statistics enabled in HA? Which integration can I use to easily generate some?

@koying
Copy link
Contributor Author

koying commented Apr 21, 2022

Anything with a "measurement" state_class really, which is the default, iirc.

Bottom line: any sensor with a numeric value, afaik.

Copy link
Contributor Author

@koying koying left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The statistics card is just wrong ;)
See home-assistant/core#56052

@RomRider
Copy link
Owner

I see your point, now I understand the issue :) I'll revert !

@RomRider
Copy link
Owner

RomRider commented Apr 22, 2022

So @koying, for lines I'm using the end date to display the point, and for column I'll use the start date. I think that makes sense, what do you think?

@koying
Copy link
Contributor Author

koying commented Apr 22, 2022

I don't use columns myself.
Assuming the left side of the column starts on the datetime tick, yes, it would make sense indeed.

Now, this would still be somewhat confusing, imo. Ideally, the column would be cantered on the datetime tick, and still use the end date, or the right side on the end date.

Maybe wishful thinking?

EDIT: Maybe add an option to use start or end? Not sure we can have a one-size-fir-all, here

@RomRider
Copy link
Owner

I'll add an option with start, end and middle. Default will be middle

@RomRider
Copy link
Owner

I think this PR is now ready. I'll release and collect feedback :)

@RomRider RomRider changed the title [WIP] ADD: Support for HA long-term statistics ADD: Support for HA long-term statistics Apr 22, 2022
@RomRider RomRider merged commit 29aaa7c into RomRider:dev Apr 22, 2022
@RomRider
Copy link
Owner

Thanks @koying for bringing this in and sorry for the delay in merging :)

github-actions bot pushed a commit that referenced this pull request Apr 22, 2022
## [2.0.0-dev.3](v2.0.0-dev.2...v2.0.0-dev.3) (2022-04-22)

### Features

* Support for HA long-term statistics ([#208](#208)) ([29aaa7c](29aaa7c)), closes [#308](#308)
@github-actions
Copy link

🎉 This PR is included in version 2.0.0-dev.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Apr 23, 2022
## [2.0.0](v1.10.0...v2.0.0) (2022-04-23)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [#318](#318)
* add state type to long term statistics ([#329](#329)) ([3fad4f0](3fad4f0))
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [#277](#277)
* display only the min or max extrema ([3db982b](3db982b)), closes [#319](#319)
* follow Home Assistant number format ([9204de2](9204de2)), closes [#307](#307)
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [#323](#323)
* Support for HA long-term statistics ([#208](#208)) ([29aaa7c](29aaa7c)), closes [#308](#308)

### Bug Fixes

* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* caching issue for statistics ([8daff2f](8daff2f))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [#280](#280)
* last caching issue with statistics ([2e528f7](2e528f7))
* median function fails if it receives an empty table ([#316](#316)) ([12f8d2e](12f8d2e))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [#196](#196)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
@github-actions
Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to lobodart/apexcharts-card that referenced this pull request Sep 26, 2022
## 1.0.0 (2022-09-26)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/lobodart/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/lobodart/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/lobodart/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [RomRider#2](https://github.com/lobodart/apexcharts-card/issues/2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/lobodart/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/lobodart/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/lobodart/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/lobodart/apexcharts-card/issues/277)
* Better cache handling ([RomRider#1](https://github.com/lobodart/apexcharts-card/issues/1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/lobodart/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/lobodart/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([RomRider#7](https://github.com/lobodart/apexcharts-card/issues/7)) ([3a15db2](3a15db2)), closes [RomRider#4](https://github.com/lobodart/apexcharts-card/issues/4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/lobodart/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/lobodart/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [RomRider#6](https://github.com/lobodart/apexcharts-card/issues/6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/lobodart/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/lobodart/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/lobodart/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/lobodart/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/lobodart/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/lobodart/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/lobodart/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/lobodart/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/lobodart/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/lobodart/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([RomRider#8](https://github.com/lobodart/apexcharts-card/issues/8)) ([2cbd769](2cbd769)), closes [RomRider#5](https://github.com/lobodart/apexcharts-card/issues/5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/lobodart/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/lobodart/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/lobodart/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/lobodart/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/lobodart/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/lobodart/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/lobodart/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/lobodart/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/lobodart/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/lobodart/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/lobodart/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/lobodart/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/lobodart/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/lobodart/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/lobodart/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/lobodart/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/lobodart/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/lobodart/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/lobodart/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/lobodart/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/lobodart/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/lobodart/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/lobodart/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/lobodart/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/lobodart/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/lobodart/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/lobodart/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/lobodart/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/lobodart/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/lobodart/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/lobodart/apexcharts-card/issues/48) [RomRider#53](https://github.com/lobodart/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/lobodart/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/lobodart/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/lobodart/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/lobodart/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/lobodart/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/lobodart/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/lobodart/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/lobodart/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/lobodart/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/lobodart/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/lobodart/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/lobodart/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/lobodart/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/lobodart/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/lobodart/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/lobodart/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/lobodart/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/lobodart/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/lobodart/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/lobodart/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/lobodart/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/lobodart/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/lobodart/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/lobodart/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/lobodart/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/lobodart/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/lobodart/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/lobodart/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/lobodart/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/lobodart/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/lobodart/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/lobodart/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/lobodart/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/lobodart/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/lobodart/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/lobodart/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/lobodart/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
@AleXSR700
Copy link

AleXSR700 commented Nov 5, 2022

Would it maybe be possible to make statistics dis-/enableable?
Statistics really make sense for larger amounts of data and little sense for recent data. So using templating it would be possible to switch the source of data between normal database and long term statistics.

However, this does not work because it is not possible to dis-/enable using e.g. statistics: [].

Maybe it could be

statistics: enable
  type: max
....

That way the statistics settings are there when needed but it does not interrupt code functionality if type etc. are []

github-actions bot pushed a commit to TheBrain8791/apexcharts-card that referenced this pull request Jan 15, 2023
## 1.0.0 (2023-01-15)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/TheBrain8791/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/TheBrain8791/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/TheBrain8791/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [#2](#2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/TheBrain8791/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/TheBrain8791/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/TheBrain8791/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/TheBrain8791/apexcharts-card/issues/277)
* Better cache handling ([#1](#1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/TheBrain8791/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/TheBrain8791/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([#7](#7)) ([3a15db2](3a15db2)), closes [#4](#4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/TheBrain8791/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/TheBrain8791/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [#6](#6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/TheBrain8791/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/TheBrain8791/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/TheBrain8791/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/TheBrain8791/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/TheBrain8791/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/TheBrain8791/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/TheBrain8791/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/TheBrain8791/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/TheBrain8791/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/TheBrain8791/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([#8](#8)) ([2cbd769](2cbd769)), closes [#5](#5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/TheBrain8791/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/TheBrain8791/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/TheBrain8791/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/TheBrain8791/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/TheBrain8791/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/TheBrain8791/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/TheBrain8791/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/TheBrain8791/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/TheBrain8791/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/TheBrain8791/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/TheBrain8791/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/TheBrain8791/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/TheBrain8791/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/TheBrain8791/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/TheBrain8791/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/TheBrain8791/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/TheBrain8791/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/TheBrain8791/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/TheBrain8791/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/TheBrain8791/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/TheBrain8791/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/TheBrain8791/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/TheBrain8791/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/TheBrain8791/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/TheBrain8791/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/TheBrain8791/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/TheBrain8791/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/TheBrain8791/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/TheBrain8791/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/TheBrain8791/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/TheBrain8791/apexcharts-card/issues/48) [RomRider#53](https://github.com/TheBrain8791/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/TheBrain8791/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/TheBrain8791/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/TheBrain8791/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/TheBrain8791/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/TheBrain8791/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/TheBrain8791/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/TheBrain8791/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/TheBrain8791/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/TheBrain8791/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/TheBrain8791/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/TheBrain8791/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/TheBrain8791/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/TheBrain8791/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/TheBrain8791/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/TheBrain8791/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/TheBrain8791/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/TheBrain8791/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/TheBrain8791/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/TheBrain8791/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/TheBrain8791/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/TheBrain8791/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/TheBrain8791/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/TheBrain8791/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/TheBrain8791/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/TheBrain8791/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/TheBrain8791/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/TheBrain8791/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/TheBrain8791/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/TheBrain8791/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/TheBrain8791/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/TheBrain8791/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/TheBrain8791/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/TheBrain8791/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/TheBrain8791/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/TheBrain8791/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/TheBrain8791/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/TheBrain8791/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/TheBrain8791/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
github-actions bot pushed a commit to TheBrain8791/apexcharts-card that referenced this pull request Jan 15, 2023
## 1.0.0 (2023-01-15)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/TheBrain8791/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/TheBrain8791/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/TheBrain8791/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [#2](#2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/TheBrain8791/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/TheBrain8791/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/TheBrain8791/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/TheBrain8791/apexcharts-card/issues/277)
* Better cache handling ([#1](#1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/TheBrain8791/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/TheBrain8791/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([#7](#7)) ([3a15db2](3a15db2)), closes [#4](#4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/TheBrain8791/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/TheBrain8791/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [#6](#6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/TheBrain8791/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/TheBrain8791/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/TheBrain8791/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/TheBrain8791/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/TheBrain8791/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/TheBrain8791/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/TheBrain8791/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/TheBrain8791/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/TheBrain8791/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/TheBrain8791/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([#8](#8)) ([2cbd769](2cbd769)), closes [#5](#5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/TheBrain8791/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/TheBrain8791/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/TheBrain8791/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/TheBrain8791/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/TheBrain8791/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/TheBrain8791/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/TheBrain8791/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/TheBrain8791/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/TheBrain8791/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/TheBrain8791/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/TheBrain8791/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/TheBrain8791/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/TheBrain8791/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/TheBrain8791/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/TheBrain8791/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/TheBrain8791/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/TheBrain8791/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/TheBrain8791/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/TheBrain8791/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/TheBrain8791/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/TheBrain8791/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/TheBrain8791/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/TheBrain8791/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/TheBrain8791/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/TheBrain8791/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/TheBrain8791/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/TheBrain8791/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/TheBrain8791/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/TheBrain8791/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/TheBrain8791/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/TheBrain8791/apexcharts-card/issues/48) [RomRider#53](https://github.com/TheBrain8791/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/TheBrain8791/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/TheBrain8791/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/TheBrain8791/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/TheBrain8791/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/TheBrain8791/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/TheBrain8791/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/TheBrain8791/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/TheBrain8791/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/TheBrain8791/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/TheBrain8791/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/TheBrain8791/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/TheBrain8791/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/TheBrain8791/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/TheBrain8791/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/TheBrain8791/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/TheBrain8791/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/TheBrain8791/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/TheBrain8791/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/TheBrain8791/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/TheBrain8791/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/TheBrain8791/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/TheBrain8791/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/TheBrain8791/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/TheBrain8791/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/TheBrain8791/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/TheBrain8791/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/TheBrain8791/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/TheBrain8791/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/TheBrain8791/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/TheBrain8791/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/TheBrain8791/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/TheBrain8791/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/TheBrain8791/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/TheBrain8791/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/TheBrain8791/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/TheBrain8791/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/TheBrain8791/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/TheBrain8791/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
@georgbachmann
Copy link

georgbachmann commented Jan 24, 2023

First up: I just discovered this card and the amount of customizability is amazing!!! Thank you very much for the whole card!

I have a quick question about the long-term-statistics support
I'd like to display the mean line as a big line, and the min/max values behind, but as an area that is above min and below max. I hacked it for now by using white as the min-color and now my chart looks like this
Bildschirm­foto 2023-01-24 um 23 22 42

So basically somewhat what i want, but instead of masking the max-chart it just overlays white which is not ideal.
Is there a proper way to archive what I want?

My config for this looks like this:

type: custom:apexcharts-card
header:
  show: true
  title: Temperatur Bad OG
  show_states: true
  colorize_states: true
series:
  - entity: sensor.temperature_knx_bad_og
    type: line
    color: '#FF9B12'
    show:
      name_in_header: false
    statistics:
      type: mean
      align: middle
      period: hour
  - entity: sensor.temperature_knx_bad_og
    type: area
    color: '#FF9B12'
    opacity: 0.2
    stroke_width: 0
    show:
      in_header: false
    statistics:
      type: max
  - entity: sensor.temperature_knx_bad_og
    type: area
    opacity: 1
    stroke_width: 0
    show:
      in_header: false
    color: white
    statistics:
      type: min
yaxis:
  - min: '|-0.5|'
    max: '|+0.5|'
    decimals: 1
    apex_config:
      tickAmount: 5
graph_span: 24h
apex_config:
  legend:
    show: false

github-actions bot pushed a commit to ka0n/apexcharts-card that referenced this pull request Jun 1, 2023
## 1.0.0 (2023-06-01)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/ka0n/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/ka0n/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/ka0n/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [RomRider#2](https://github.com/ka0n/apexcharts-card/issues/2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/ka0n/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/ka0n/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/ka0n/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/ka0n/apexcharts-card/issues/277)
* Better cache handling ([#1](#1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/ka0n/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/ka0n/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([RomRider#7](https://github.com/ka0n/apexcharts-card/issues/7)) ([3a15db2](3a15db2)), closes [RomRider#4](https://github.com/ka0n/apexcharts-card/issues/4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/ka0n/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/ka0n/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [RomRider#6](https://github.com/ka0n/apexcharts-card/issues/6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/ka0n/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/ka0n/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/ka0n/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/ka0n/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/ka0n/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/ka0n/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/ka0n/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/ka0n/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/ka0n/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/ka0n/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([RomRider#8](https://github.com/ka0n/apexcharts-card/issues/8)) ([2cbd769](2cbd769)), closes [RomRider#5](https://github.com/ka0n/apexcharts-card/issues/5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/ka0n/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/ka0n/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/ka0n/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/ka0n/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/ka0n/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/ka0n/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/ka0n/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/ka0n/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/ka0n/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/ka0n/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/ka0n/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/ka0n/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/ka0n/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/ka0n/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/ka0n/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/ka0n/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/ka0n/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/ka0n/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/ka0n/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/ka0n/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/ka0n/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/ka0n/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/ka0n/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/ka0n/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/ka0n/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/ka0n/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/ka0n/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/ka0n/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/ka0n/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/ka0n/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/ka0n/apexcharts-card/issues/48) [RomRider#53](https://github.com/ka0n/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/ka0n/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/ka0n/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/ka0n/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/ka0n/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/ka0n/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/ka0n/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/ka0n/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* actually really fix the issue with HA 2023.4 beta and above ([972f2c0](972f2c0)), closes [RomRider#529](https://github.com/ka0n/apexcharts-card/issues/529)
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* card broken with HA 2023.4.0bXX and above ([e1aaf69](e1aaf69)), closes [RomRider#527](https://github.com/ka0n/apexcharts-card/issues/527)
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/ka0n/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/ka0n/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/ka0n/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/ka0n/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/ka0n/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/ka0n/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/ka0n/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/ka0n/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extra space at bottom because of the card's action-handler ([533a784](533a784))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/ka0n/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/ka0n/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/ka0n/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/ka0n/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/ka0n/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/ka0n/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/ka0n/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/ka0n/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/ka0n/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/ka0n/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/ka0n/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/ka0n/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/ka0n/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/ka0n/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/ka0n/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/ka0n/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/ka0n/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/ka0n/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/ka0n/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/ka0n/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/ka0n/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/ka0n/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/ka0n/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
github-actions bot pushed a commit to georgepauna/apexcharts-card that referenced this pull request May 14, 2024
## 1.0.0 (2024-05-14)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/georgepauna/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/georgepauna/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/georgepauna/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [RomRider#2](https://github.com/georgepauna/apexcharts-card/issues/2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/georgepauna/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/georgepauna/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/georgepauna/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/georgepauna/apexcharts-card/issues/277)
* Better cache handling ([RomRider#1](https://github.com/georgepauna/apexcharts-card/issues/1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/georgepauna/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/georgepauna/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([RomRider#7](https://github.com/georgepauna/apexcharts-card/issues/7)) ([3a15db2](3a15db2)), closes [RomRider#4](https://github.com/georgepauna/apexcharts-card/issues/4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/georgepauna/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/georgepauna/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [RomRider#6](https://github.com/georgepauna/apexcharts-card/issues/6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/georgepauna/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/georgepauna/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/georgepauna/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/georgepauna/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/georgepauna/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/georgepauna/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/georgepauna/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/georgepauna/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/georgepauna/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([RomRider#8](https://github.com/georgepauna/apexcharts-card/issues/8)) ([2cbd769](2cbd769)), closes [RomRider#5](https://github.com/georgepauna/apexcharts-card/issues/5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/georgepauna/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/georgepauna/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/georgepauna/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/georgepauna/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/georgepauna/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/georgepauna/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/georgepauna/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/georgepauna/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/georgepauna/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/georgepauna/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/georgepauna/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/georgepauna/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/georgepauna/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/georgepauna/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/georgepauna/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/georgepauna/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/georgepauna/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/georgepauna/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/georgepauna/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/georgepauna/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/georgepauna/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/georgepauna/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/georgepauna/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/georgepauna/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/georgepauna/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/georgepauna/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/georgepauna/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/georgepauna/apexcharts-card/issues/48) [RomRider#53](https://github.com/georgepauna/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/georgepauna/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/georgepauna/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/georgepauna/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/georgepauna/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/georgepauna/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/georgepauna/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/georgepauna/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* actually really fix the issue with HA 2023.4 beta and above ([972f2c0](972f2c0)), closes [RomRider#529](https://github.com/georgepauna/apexcharts-card/issues/529)
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* card broken with HA 2023.4.0bXX and above ([e1aaf69](e1aaf69)), closes [RomRider#527](https://github.com/georgepauna/apexcharts-card/issues/527)
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/georgepauna/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/georgepauna/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/georgepauna/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/georgepauna/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/georgepauna/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/georgepauna/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extra space at bottom because of the card's action-handler ([533a784](533a784))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/georgepauna/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/georgepauna/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/georgepauna/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/georgepauna/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/georgepauna/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/georgepauna/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/georgepauna/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/georgepauna/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/georgepauna/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/georgepauna/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/georgepauna/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/georgepauna/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/georgepauna/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/georgepauna/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/georgepauna/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/georgepauna/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/georgepauna/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
github-actions bot pushed a commit to georgepauna/apexcharts-card that referenced this pull request May 14, 2024
## 1.0.0 (2024-05-14)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/georgepauna/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/georgepauna/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/georgepauna/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [RomRider#2](https://github.com/georgepauna/apexcharts-card/issues/2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/georgepauna/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/georgepauna/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/georgepauna/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/georgepauna/apexcharts-card/issues/277)
* Better cache handling ([RomRider#1](https://github.com/georgepauna/apexcharts-card/issues/1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/georgepauna/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/georgepauna/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([RomRider#7](https://github.com/georgepauna/apexcharts-card/issues/7)) ([3a15db2](3a15db2)), closes [RomRider#4](https://github.com/georgepauna/apexcharts-card/issues/4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/georgepauna/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/georgepauna/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [RomRider#6](https://github.com/georgepauna/apexcharts-card/issues/6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/georgepauna/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/georgepauna/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/georgepauna/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/georgepauna/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/georgepauna/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/georgepauna/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/georgepauna/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/georgepauna/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/georgepauna/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([RomRider#8](https://github.com/georgepauna/apexcharts-card/issues/8)) ([2cbd769](2cbd769)), closes [RomRider#5](https://github.com/georgepauna/apexcharts-card/issues/5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/georgepauna/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/georgepauna/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/georgepauna/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/georgepauna/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/georgepauna/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/georgepauna/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/georgepauna/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/georgepauna/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/georgepauna/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/georgepauna/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/georgepauna/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/georgepauna/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/georgepauna/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/georgepauna/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/georgepauna/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/georgepauna/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/georgepauna/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/georgepauna/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/georgepauna/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/georgepauna/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/georgepauna/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/georgepauna/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/georgepauna/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/georgepauna/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/georgepauna/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/georgepauna/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/georgepauna/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/georgepauna/apexcharts-card/issues/48) [RomRider#53](https://github.com/georgepauna/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/georgepauna/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/georgepauna/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/georgepauna/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/georgepauna/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/georgepauna/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/georgepauna/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/georgepauna/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* actually really fix the issue with HA 2023.4 beta and above ([972f2c0](972f2c0)), closes [RomRider#529](https://github.com/georgepauna/apexcharts-card/issues/529)
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* card broken with HA 2023.4.0bXX and above ([e1aaf69](e1aaf69)), closes [RomRider#527](https://github.com/georgepauna/apexcharts-card/issues/527)
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/georgepauna/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/georgepauna/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/georgepauna/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/georgepauna/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/georgepauna/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/georgepauna/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extra space at bottom because of the card's action-handler ([533a784](533a784))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/georgepauna/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/georgepauna/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/georgepauna/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/georgepauna/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/georgepauna/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/georgepauna/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/georgepauna/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/georgepauna/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/georgepauna/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/georgepauna/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/georgepauna/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/georgepauna/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/georgepauna/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/georgepauna/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/georgepauna/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/georgepauna/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/georgepauna/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
github-actions bot pushed a commit to georgepauna/apexcharts-card that referenced this pull request May 14, 2024
## 1.0.0 (2024-05-14)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/georgepauna/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/georgepauna/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/georgepauna/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [RomRider#2](https://github.com/georgepauna/apexcharts-card/issues/2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/georgepauna/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/georgepauna/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/georgepauna/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/georgepauna/apexcharts-card/issues/277)
* Better cache handling ([RomRider#1](https://github.com/georgepauna/apexcharts-card/issues/1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/georgepauna/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/georgepauna/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([RomRider#7](https://github.com/georgepauna/apexcharts-card/issues/7)) ([3a15db2](3a15db2)), closes [RomRider#4](https://github.com/georgepauna/apexcharts-card/issues/4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/georgepauna/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/georgepauna/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [RomRider#6](https://github.com/georgepauna/apexcharts-card/issues/6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/georgepauna/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/georgepauna/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/georgepauna/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/georgepauna/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/georgepauna/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/georgepauna/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/georgepauna/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/georgepauna/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/georgepauna/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([RomRider#8](https://github.com/georgepauna/apexcharts-card/issues/8)) ([2cbd769](2cbd769)), closes [RomRider#5](https://github.com/georgepauna/apexcharts-card/issues/5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/georgepauna/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/georgepauna/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/georgepauna/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/georgepauna/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/georgepauna/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/georgepauna/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/georgepauna/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/georgepauna/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/georgepauna/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/georgepauna/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/georgepauna/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/georgepauna/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/georgepauna/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/georgepauna/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/georgepauna/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/georgepauna/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/georgepauna/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/georgepauna/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/georgepauna/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/georgepauna/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/georgepauna/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/georgepauna/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/georgepauna/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/georgepauna/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/georgepauna/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/georgepauna/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/georgepauna/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/georgepauna/apexcharts-card/issues/48) [RomRider#53](https://github.com/georgepauna/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/georgepauna/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/georgepauna/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/georgepauna/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/georgepauna/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/georgepauna/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/georgepauna/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/georgepauna/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* actually really fix the issue with HA 2023.4 beta and above ([972f2c0](972f2c0)), closes [RomRider#529](https://github.com/georgepauna/apexcharts-card/issues/529)
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* card broken with HA 2023.4.0bXX and above ([e1aaf69](e1aaf69)), closes [RomRider#527](https://github.com/georgepauna/apexcharts-card/issues/527)
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/georgepauna/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/georgepauna/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/georgepauna/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/georgepauna/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/georgepauna/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/georgepauna/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extra space at bottom because of the card's action-handler ([533a784](533a784))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/georgepauna/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/georgepauna/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/georgepauna/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/georgepauna/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/georgepauna/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/georgepauna/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/georgepauna/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/georgepauna/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/georgepauna/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/georgepauna/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/georgepauna/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/georgepauna/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/georgepauna/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/georgepauna/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/georgepauna/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/georgepauna/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/georgepauna/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
github-actions bot pushed a commit to georgepauna/apexcharts-card that referenced this pull request May 14, 2024
## 1.0.0 (2024-05-14)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/georgepauna/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/georgepauna/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/georgepauna/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [RomRider#2](https://github.com/georgepauna/apexcharts-card/issues/2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/georgepauna/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/georgepauna/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/georgepauna/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/georgepauna/apexcharts-card/issues/277)
* Better cache handling ([RomRider#1](https://github.com/georgepauna/apexcharts-card/issues/1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/georgepauna/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/georgepauna/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([RomRider#7](https://github.com/georgepauna/apexcharts-card/issues/7)) ([3a15db2](3a15db2)), closes [RomRider#4](https://github.com/georgepauna/apexcharts-card/issues/4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/georgepauna/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/georgepauna/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [RomRider#6](https://github.com/georgepauna/apexcharts-card/issues/6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/georgepauna/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/georgepauna/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/georgepauna/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/georgepauna/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/georgepauna/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/georgepauna/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/georgepauna/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/georgepauna/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/georgepauna/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([RomRider#8](https://github.com/georgepauna/apexcharts-card/issues/8)) ([2cbd769](2cbd769)), closes [RomRider#5](https://github.com/georgepauna/apexcharts-card/issues/5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/georgepauna/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/georgepauna/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/georgepauna/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/georgepauna/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/georgepauna/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/georgepauna/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/georgepauna/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/georgepauna/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/georgepauna/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/georgepauna/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/georgepauna/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/georgepauna/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/georgepauna/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/georgepauna/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/georgepauna/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/georgepauna/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/georgepauna/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/georgepauna/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/georgepauna/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/georgepauna/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/georgepauna/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/georgepauna/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/georgepauna/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/georgepauna/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/georgepauna/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/georgepauna/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/georgepauna/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/georgepauna/apexcharts-card/issues/48) [RomRider#53](https://github.com/georgepauna/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/georgepauna/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/georgepauna/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/georgepauna/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/georgepauna/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/georgepauna/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/georgepauna/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/georgepauna/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* actually really fix the issue with HA 2023.4 beta and above ([972f2c0](972f2c0)), closes [RomRider#529](https://github.com/georgepauna/apexcharts-card/issues/529)
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* card broken with HA 2023.4.0bXX and above ([e1aaf69](e1aaf69)), closes [RomRider#527](https://github.com/georgepauna/apexcharts-card/issues/527)
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/georgepauna/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/georgepauna/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/georgepauna/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/georgepauna/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/georgepauna/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/georgepauna/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extra space at bottom because of the card's action-handler ([533a784](533a784))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/georgepauna/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/georgepauna/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/georgepauna/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/georgepauna/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/georgepauna/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/georgepauna/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/georgepauna/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/georgepauna/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/georgepauna/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/georgepauna/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/georgepauna/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/georgepauna/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/georgepauna/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/georgepauna/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/georgepauna/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/georgepauna/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/georgepauna/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
github-actions bot pushed a commit to georgepauna/apexcharts-card that referenced this pull request May 15, 2024
## 1.0.0 (2024-05-15)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/georgepauna/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/georgepauna/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/georgepauna/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [RomRider#2](https://github.com/georgepauna/apexcharts-card/issues/2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/georgepauna/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/georgepauna/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/georgepauna/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/georgepauna/apexcharts-card/issues/277)
* Better cache handling ([RomRider#1](https://github.com/georgepauna/apexcharts-card/issues/1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/georgepauna/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/georgepauna/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([RomRider#7](https://github.com/georgepauna/apexcharts-card/issues/7)) ([3a15db2](3a15db2)), closes [RomRider#4](https://github.com/georgepauna/apexcharts-card/issues/4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/georgepauna/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/georgepauna/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [RomRider#6](https://github.com/georgepauna/apexcharts-card/issues/6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/georgepauna/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/georgepauna/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/georgepauna/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/georgepauna/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/georgepauna/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/georgepauna/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/georgepauna/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/georgepauna/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/georgepauna/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([RomRider#8](https://github.com/georgepauna/apexcharts-card/issues/8)) ([2cbd769](2cbd769)), closes [RomRider#5](https://github.com/georgepauna/apexcharts-card/issues/5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/georgepauna/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/georgepauna/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/georgepauna/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/georgepauna/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/georgepauna/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/georgepauna/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/georgepauna/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/georgepauna/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/georgepauna/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/georgepauna/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/georgepauna/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/georgepauna/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/georgepauna/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/georgepauna/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/georgepauna/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/georgepauna/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/georgepauna/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/georgepauna/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/georgepauna/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/georgepauna/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/georgepauna/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/georgepauna/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/georgepauna/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/georgepauna/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/georgepauna/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/georgepauna/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/georgepauna/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/georgepauna/apexcharts-card/issues/48) [RomRider#53](https://github.com/georgepauna/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/georgepauna/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/georgepauna/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/georgepauna/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/georgepauna/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/georgepauna/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/georgepauna/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/georgepauna/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* actually really fix the issue with HA 2023.4 beta and above ([972f2c0](972f2c0)), closes [RomRider#529](https://github.com/georgepauna/apexcharts-card/issues/529)
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* card broken with HA 2023.4.0bXX and above ([e1aaf69](e1aaf69)), closes [RomRider#527](https://github.com/georgepauna/apexcharts-card/issues/527)
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/georgepauna/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/georgepauna/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/georgepauna/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/georgepauna/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/georgepauna/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/georgepauna/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extra space at bottom because of the card's action-handler ([533a784](533a784))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/georgepauna/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/georgepauna/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/georgepauna/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/georgepauna/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/georgepauna/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/georgepauna/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/georgepauna/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/georgepauna/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/georgepauna/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/georgepauna/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/georgepauna/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/georgepauna/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/georgepauna/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/georgepauna/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/georgepauna/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/georgepauna/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/georgepauna/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
github-actions bot pushed a commit to georgepauna/apexcharts-card that referenced this pull request Jun 17, 2024
## 1.0.0 (2024-06-17)

### ⚠ BREAKING CHANGES

* `extend_to_end` has been removed and replaced by `extend_to` with support for `now` and `end`.
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours.

### Features

* `extend_to` replaces `extend_to_end` with new options ([4bb1dd2](4bb1dd2)), closes [RomRider#318](https://github.com/georgepauna/apexcharts-card/issues/318)
* **actions:** `header_actions` support for actions in header ([RomRider#171](https://github.com/georgepauna/apexcharts-card/issues/171)) ([bd6a497](bd6a497)), closes [RomRider#61](https://github.com/georgepauna/apexcharts-card/issues/61)
* Add `update_interval` config option ([357db9a](357db9a)), closes [RomRider#2](https://github.com/georgepauna/apexcharts-card/issues/2)
* Add delta and median function ([4a77e55](4a77e55))
* Add spinner while data is loading ([39d4b8e](39d4b8e))
* add state type to long term statistics ([RomRider#329](https://github.com/georgepauna/apexcharts-card/issues/329)) ([3fad4f0](3fad4f0))
* add stroke_width and experimental color_threshold/disable_config_validation ([fcdfa88](fcdfa88)), closes [RomRider#58](https://github.com/georgepauna/apexcharts-card/issues/58)
* **apex_config:** Support for functions in `apex_config` ([cebc03b](cebc03b)), closes [RomRider#81](https://github.com/georgepauna/apexcharts-card/issues/81)
* Apply a `time_delta` to all the datapoints of your serie ([435e381](435e381)), closes [RomRider#277](https://github.com/georgepauna/apexcharts-card/issues/277)
* Better cache handling ([RomRider#1](https://github.com/georgepauna/apexcharts-card/issues/1)) ([804415f](804415f))
* Bring back `hours_12` from the dead ([676bdb7](676bdb7))
* **brush:** Support for a timeframe selection chart ([RomRider#102](https://github.com/georgepauna/apexcharts-card/issues/102)) ([c8dedf7](c8dedf7))
* **cache:** Invalidate cache on every new card version ([RomRider#12](https://github.com/georgepauna/apexcharts-card/issues/12)) ([b1799d9](b1799d9))
* **card:** Support for pre-defined layouts ([c5987f8](c5987f8))
* **color:** Define your own `color` option for each `serie` ([RomRider#7](https://github.com/georgepauna/apexcharts-card/issues/7)) ([3a15db2](3a15db2)), closes [RomRider#4](https://github.com/georgepauna/apexcharts-card/issues/4)
* **config_tpl:** Create a config template and use it everywhere with `config_templates`, apply the same config to every series with `all_series_config` and add `color_list` to define your color list in one shot ([RomRider#64](https://github.com/georgepauna/apexcharts-card/issues/64)) ([17004a3](17004a3))
* **data_generator:** Build your own data based on the last state and attributes of your entity ([RomRider#14](https://github.com/georgepauna/apexcharts-card/issues/14)) ([18284b5](18284b5)), closes [RomRider#6](https://github.com/georgepauna/apexcharts-card/issues/6)
* **datalabels:** Option to display total when chart is stacked ([RomRider#75](https://github.com/georgepauna/apexcharts-card/issues/75)) ([e1c5b01](e1c5b01)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Define your own float precision for legend, tooltip and Y axis ([7b0f30f](7b0f30f))
* display only the min or max extrema ([3db982b](3db982b)), closes [RomRider#319](https://github.com/georgepauna/apexcharts-card/issues/319)
* display the chart's last update time using `last_updated` ([2dd84ff](2dd84ff))
* Display warning if sensor doesn't exist ([a69df3d](a69df3d))
* **editor:** Preview in the GUI card selector ([d4cd7a3](d4cd7a3))
* **experimental:** `hidden_by_default` to toggle series on load ([RomRider#62](https://github.com/georgepauna/apexcharts-card/issues/62)) ([63717b7](63717b7)), closes [RomRider#60](https://github.com/georgepauna/apexcharts-card/issues/60)
* **experimental:** Header color can now follow `color_threshold` ([RomRider#88](https://github.com/georgepauna/apexcharts-card/issues/88)) ([074bfc3](074bfc3)), closes [RomRider#78](https://github.com/georgepauna/apexcharts-card/issues/78)
* **extremas:** Display the time on top of your extremas ([RomRider#97](https://github.com/georgepauna/apexcharts-card/issues/97)) ([d127b37](d127b37))
* Floating header ([1eccee8](1eccee8))
* follow Home Assistant number format ([9204de2](9204de2)), closes [RomRider#307](https://github.com/georgepauna/apexcharts-card/issues/307)
* **graph:** Extends graph's last value to the current time ([bfe64c5](bfe64c5))
* **graph:** New chart types `scatter`, `donut`, `pie` and `radialBar` ([RomRider#24](https://github.com/georgepauna/apexcharts-card/issues/24)) ([a0e4f85](a0e4f85))
* **group_by:** Add more functions and fix buckets ([c7324e0](c7324e0))
* **group_by:** Add new `diff` function ([57fd6a6](57fd6a6))
* **group_by:** With `start_with_last`, each bucket will start with the last data from the previous bucket ([8669411](8669411))
* **header:** More header options and title support ([RomRider#8](https://github.com/georgepauna/apexcharts-card/issues/8)) ([2cbd769](2cbd769)), closes [RomRider#5](https://github.com/georgepauna/apexcharts-card/issues/5)
* **header:** Standard header title home-assistant format using `standard_format` ([35c5391](35c5391)), closes [RomRider#35](https://github.com/georgepauna/apexcharts-card/issues/35)
* Initial support for aggregating data ([13dfd89](13dfd89))
* **invert:** Negates/Inverts the data for a serie ([RomRider#13](https://github.com/georgepauna/apexcharts-card/issues/13)) ([ab793c5](ab793c5))
* **locale:** Inherit locale from Home-Assistant, deprecate `hours_12` ([RomRider#70](https://github.com/georgepauna/apexcharts-card/issues/70)) ([af2d201](af2d201)), closes [RomRider#68](https://github.com/georgepauna/apexcharts-card/issues/68)
* make datagenerator async ([RomRider#157](https://github.com/georgepauna/apexcharts-card/issues/157)) ([b9049fc](b9049fc))
* Native multi y-axis support with auto-scale ([RomRider#160](https://github.com/georgepauna/apexcharts-card/issues/160)) ([e08aa14](e08aa14)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **now:** Add a marker at the current time on the chart ([9b6b83d](9b6b83d)), closes [RomRider#44](https://github.com/georgepauna/apexcharts-card/issues/44)
* pie/donut now shows the value of the serie instead of the percentage. Old behavior with `datalabels: percent` ([7591aba](7591aba))
* Replace `hours_to_show` with `graph_span`. Takes a time string instead of a number of hours. ([e7ed408](e7ed408))
* **series.offset:** Compare data from another timeframe with the current timeframe ([RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19)) ([af8ba81](af8ba81)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* **series.show:** Display the value before/after the current time in the header ([2855403](2855403)), closes [RomRider#86](https://github.com/georgepauna/apexcharts-card/issues/86)
* **series.show:** Display your serie's extremas on the chart ([RomRider#85](https://github.com/georgepauna/apexcharts-card/issues/85)) ([f64169a](f64169a))
* **series.show:** Hide the name of a serie in the header ([b20133d](b20133d)), closes [RomRider#111](https://github.com/georgepauna/apexcharts-card/issues/111)
* **series.show:** Hide the offset from the name of the serie ([a46c3f0](a46c3f0)), closes [RomRider#112](https://github.com/georgepauna/apexcharts-card/issues/112)
* **series.show:** Option to show the raw data in the header ([RomRider#76](https://github.com/georgepauna/apexcharts-card/issues/76)) ([87b56f5](87b56f5)), closes [RomRider#69](https://github.com/georgepauna/apexcharts-card/issues/69)
* **series.show:** Show/hide dataLabels per serie ([9e28db3](9e28db3))
* **series:** `transform` the data the way you want ([RomRider#45](https://github.com/georgepauna/apexcharts-card/issues/45)) ([1cb6bb5](1cb6bb5))
* **series:** Define the `opacity` of the line or area ([8dfb3fd](8dfb3fd)), closes [RomRider#57](https://github.com/georgepauna/apexcharts-card/issues/57)
* **series:** Display values as a duration ([RomRider#21](https://github.com/georgepauna/apexcharts-card/issues/21)) ([227f0ea](227f0ea))
* **series:** Hide the value of a serie in the legend ([RomRider#22](https://github.com/georgepauna/apexcharts-card/issues/22)) ([1e8f748](1e8f748)), closes [RomRider#20](https://github.com/georgepauna/apexcharts-card/issues/20)
* **series:** New `fill_raw` option to fill missing data in raw history ([e2433b6](e2433b6))
* **series:** Retrieve an attribute of your entity instead of the state ([RomRider#32](https://github.com/georgepauna/apexcharts-card/issues/32)) ([b76bf16](b76bf16)), closes [RomRider#29](https://github.com/georgepauna/apexcharts-card/issues/29)
* **series:** Show/Hide a specific serie from the header or the graph ([RomRider#36](https://github.com/georgepauna/apexcharts-card/issues/36)) ([95c0433](95c0433))
* Show value in legend ([869a7f8](869a7f8))
* soft bounds and extended bounds for yaxis min/max ([RomRider#161](https://github.com/georgepauna/apexcharts-card/issues/161)) ([c57278b](c57278b))
* **span:** Add `end` as an option to end the graph at the end of the day, minute, etc... ([RomRider#11](https://github.com/georgepauna/apexcharts-card/issues/11)) ([1d0aca8](1d0aca8))
* **span:** Add support for `isoWeek` ([7abc750](7abc750)), closes [RomRider#106](https://github.com/georgepauna/apexcharts-card/issues/106)
* **span:** Display the graph from the start of the hour, day, month,… with an offset or not ([RomRider#10](https://github.com/georgepauna/apexcharts-card/issues/10)) ([bb6e88c](bb6e88c))
* support actions on the title with `title_actions` ([a9f406e](a9f406e)), closes [RomRider#323](https://github.com/georgepauna/apexcharts-card/issues/323)
* Support for 12-hour format ([RomRider#55](https://github.com/georgepauna/apexcharts-card/issues/55)) ([f38a18e](f38a18e)), closes [RomRider#48](https://github.com/georgepauna/apexcharts-card/issues/48) [RomRider#53](https://github.com/georgepauna/apexcharts-card/issues/53)
* Support for all ApexCharts options ([03efa8d](03efa8d))
* Support for auto-entities ([060e4c0](060e4c0))
* Support for HA long-term statistics ([RomRider#208](https://github.com/georgepauna/apexcharts-card/issues/208)) ([29aaa7c](29aaa7c)), closes [RomRider#308](https://github.com/georgepauna/apexcharts-card/issues/308)
* Support for header ([c5a8ee2](c5a8ee2))
* **transform:** Provide the full state as `entity` to the function ([RomRider#77](https://github.com/georgepauna/apexcharts-card/issues/77)) ([9919c10](9919c10)), closes [RomRider#71](https://github.com/georgepauna/apexcharts-card/issues/71)
* update from lit-html/lit-element to lit ([5a7d944](5a7d944))
* uses the time format defined in Home Assistant user profile ([78df800](78df800)), closes [RomRider#213](https://github.com/georgepauna/apexcharts-card/issues/213)
* **yaxis:** `id` and `yaxis_id` no longer needed with only 1 yaxis defined ([e5e8904](e5e8904))
* **yaxis:** Align the extremas to the closest `align_to`  value. ([a46c812](a46c812)), closes [RomRider#170](https://github.com/georgepauna/apexcharts-card/issues/170)
* **yaxis:** Set the number of decimals shown on the yaxis. Deprecate `y_axis_precision`. ([33fc474](33fc474)), closes [RomRider#164](https://github.com/georgepauna/apexcharts-card/issues/164)

### Bug Fixes

* `bar` should be `column` ([ff188ee](ff188ee))
* `group_by` was extending values into the future ([2cb79d2](2cb79d2))
* `group_by` would sometimes not work with `data_generator` ([cfa6871](cfa6871))
* `last_updated` date format was not following the configuration ([3dd4904](3dd4904))
* `update_interval` was broken ([31d2fb7](31d2fb7))
* 1st color was not using transparency ([77a9c8d](77a9c8d))
* actually really fix the issue with HA 2023.4 beta and above ([972f2c0](972f2c0)), closes [RomRider#529](https://github.com/georgepauna/apexcharts-card/issues/529)
* always get all state changes, not only significant ones ([3b2f9c8](3b2f9c8))
* annotations with time were not following the time format configuration ([5d08853](5d08853))
* another caching issue with statistics ([b93ee75](b93ee75))
* **axis:** X and Y Axis Tooltip color matches theme ([fb717ef](fb717ef))
* bug introduced by 591add ([b9c9297](b9c9297))
* **build:** Missing dependancy ([7d7d637](7d7d637))
* **build:** Remove comments from build ([268ef77](268ef77))
* caching issue for statistics ([8daff2f](8daff2f))
* card broken with HA 2023.4.0bXX and above ([e1aaf69](e1aaf69)), closes [RomRider#527](https://github.com/georgepauna/apexcharts-card/issues/527)
* Chart not displayed properly or at all with layout-card ([e5840fb](e5840fb)), closes [RomRider#121](https://github.com/georgepauna/apexcharts-card/issues/121)
* color with alpha would render area opaque ([100b6d4](100b6d4))
* color_threshold would sometimes render weirdly ([d7063a5](d7063a5)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **color_threshold:** opacity for color_threshold ([5a325f4](5a325f4))
* **color_threshold:** Sometimes it would break the card ([65b5419](65b5419))
* **colorize_states:** Parameter was not applied ([28bb2e2](28bb2e2))
* **config_templates:** Was supposed to support a string ([f36d9b1](f36d9b1)), closes [RomRider#87](https://github.com/georgepauna/apexcharts-card/issues/87)
* **config:** `style` was not a valid config option (card-mod/picture-element) ([0a38778](0a38778)), closes [RomRider#15](https://github.com/georgepauna/apexcharts-card/issues/15)
* dataLabels would not follow `float_precision` ([cf9b63a](cf9b63a)), closes [RomRider#54](https://github.com/georgepauna/apexcharts-card/issues/54)
* **datalabels:** Truncate floats to 1 digit after the decimal point ([f5f744f](f5f744f))
* Disable support for colors with alpha channel ([RomRider#91](https://github.com/georgepauna/apexcharts-card/issues/91)) ([522363a](522363a)), closes [RomRider#90](https://github.com/georgepauna/apexcharts-card/issues/90)
* Display non inverted numbers in legend/tooltip/datalabels when `invert: true` ([331fe04](331fe04)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* Error was not displayed if duration couldn't be parsed ([2e2212f](2e2212f))
* extra space at bottom because of the card's action-handler ([533a784](533a784))
* extremas was not working with `invert: true` ([4d06ef6](4d06ef6)), closes [RomRider#96](https://github.com/georgepauna/apexcharts-card/issues/96)
* extremas would not display with offset applied on series ([4d7d77a](4d7d77a)), closes [RomRider#177](https://github.com/georgepauna/apexcharts-card/issues/177)
* **extremas:** Multi y-axis support ([RomRider#98](https://github.com/georgepauna/apexcharts-card/issues/98)) ([5c7d742](5c7d742)), closes [RomRider#89](https://github.com/georgepauna/apexcharts-card/issues/89)
* Float were not displayed in non-timeline charts ([e67d2d7](e67d2d7)), closes [RomRider#42](https://github.com/georgepauna/apexcharts-card/issues/42)
* Floats were not truncated properly for radialBar ([0c789ff](0c789ff)), closes [RomRider#174](https://github.com/georgepauna/apexcharts-card/issues/174)
* Friendly name wouldn't display anymore ([ef38724](ef38724))
* **func:** Filter `null` values in `diff` ([cfe736c](cfe736c))
* **func:** median was sometimes wrong ([c36dda7](c36dda7))
* Get rid of the initial load delay ([69f151b](69f151b))
* graph might be wrong when using `attributes` if value was 0 ([e200323](e200323))
* Graph stopped updating following ddf6ca9 ([bc54729](bc54729))
* **graph:** Loading message didn't appear ([ce3c45c](ce3c45c))
* **graph:** Not displaying the latest state in graph ([280e328](280e328))
* **group_by:** `group_by` reporting erronerous values for the first bucket of data ([8303b84](8303b84)), closes [RomRider#110](https://github.com/georgepauna/apexcharts-card/issues/110)
* **group_by:** When group_by was used with lines, the end of the chart was showing an empty slot (display bug only) ([0163f9e](0163f9e))
* header units for `radialBar` ([6883a8f](6883a8f)), closes [RomRider#105](https://github.com/georgepauna/apexcharts-card/issues/105)
* **header:** Hide unit when `as_duration` is used ([5686931](5686931))
* **header:** State was sometimes multi-line ([4187104](4187104))
* **header:** Unit would sometimes be on a new line ([92fad1b](92fad1b))
* hidden by default would not work without a name ([9c75ce8](9c75ce8)), closes [RomRider#280](https://github.com/georgepauna/apexcharts-card/issues/280)
* history data could be modified in some rare cases ([d38fd6e](d38fd6e))
* Home Assistant API deprecation warning ([1449c7f](1449c7f)), closes [RomRider#417](https://github.com/georgepauna/apexcharts-card/issues/417)
* Ignore recorder when not required ([c28a7a6](c28a7a6)), closes [RomRider#169](https://github.com/georgepauna/apexcharts-card/issues/169)
* **in_header:** `after/before_now` not working with offsetted series ([960b43c](960b43c))
* last caching issue with statistics ([2e528f7](2e528f7))
* Last computed history data shouldn't be null ([ec875d5](ec875d5))
* **legend:** Change ` - ` to `: ` between name and state ([4e3cdc6](4e3cdc6))
* **legend:** undefined was displayed for a hidden serie ([352c016](352c016))
* median function fails if it receives an empty table ([RomRider#316](https://github.com/georgepauna/apexcharts-card/issues/316)) ([12f8d2e](12f8d2e))
* Name and units displayed ([fe5526b](fe5526b))
* Not releasing file ([e1dc473](e1dc473))
* Optimize `extend_to_end` when used with `group_by` ([591add8](591add8))
* **series.offset:** Fix bug introduced by [RomRider#19](https://github.com/georgepauna/apexcharts-card/issues/19) ([f5c0d57](f5c0d57)), closes [RomRider#18](https://github.com/georgepauna/apexcharts-card/issues/18)
* Sometimes card would stay in warning mode ([ddf6ca9](ddf6ca9))
* Sometimes the graph was empty when changing tabs ([9232044](9232044))
* **start_with_last:** `start_with_last` would sometimes throw ([f5aa2e3](f5aa2e3))
* **style:** Better default styling of toolbar ([4d0ef1c](4d0ef1c)), closes [RomRider#16](https://github.com/georgepauna/apexcharts-card/issues/16)
* Support for `rgba` colors ([7ecfafd](7ecfafd))
* Support for card-mod >= 3.0 ([8348119](8348119)), closes [RomRider#104](https://github.com/georgepauna/apexcharts-card/issues/104)
* Support for custom views config parameters (`view_layout`) ([76a8023](76a8023))
* Support for fire-dom-event with browser-mod ([3dc9625](3dc9625)), closes [RomRider#196](https://github.com/georgepauna/apexcharts-card/issues/196)
* the hass object could sometimes be null ([ff27baf](ff27baf)), closes [RomRider#191](https://github.com/georgepauna/apexcharts-card/issues/191)
* Tooltip should not be in a fixed position ([1762049](1762049))
* **tooltip:** Use colors from the theme ([5c263f1](5c263f1))
* **tooltip:** Values where following the selected point ([0145ca2](0145ca2))
* truncate floats in total datalabels ([917a20a](917a20a)), closes [RomRider#73](https://github.com/georgepauna/apexcharts-card/issues/73)
* Update apexcharts.js to the the latest version ([dd0bf6f](dd0bf6f))
* When recorder was skipped, attributes were ignored ([15e5372](15e5372))
* Wrong labels in tooltip in some cases ([8f0aca1](8f0aca1))
* **xasis:** Better handling of graph end time if everything is `column` and `group_by` is enabled ([b5b85a6](b5b85a6))
* yaxis would always start at 0 ([50ef9e4](50ef9e4)), closes [RomRider#158](https://github.com/georgepauna/apexcharts-card/issues/158)
* **yaxis:** apex_config.yaxis was not taken into account properly ([ce04230](ce04230))
* **yaxis:** auto scale was not taking the serie's offset into account ([f82f7e0](f82f7e0)), closes [RomRider#172](https://github.com/georgepauna/apexcharts-card/issues/172)
* **yaxis:** Fixed + unfixed bounds on the same yaxis is now working ([f7e4668](f7e4668))

### Documentation

* `align_to` description update ([4471469](4471469))
* Add an example to change the line thickness ([fd4a495](fd4a495))
* Add examples and fix documentation ([c71b76a](c71b76a))
* Add more example ([ffaa5df](ffaa5df))
* Better info about month and year as offset units ([c194f87](c194f87)), closes [RomRider#65](https://github.com/georgepauna/apexcharts-card/issues/65)
* Card is now available in HACS by default ([1200abd](1200abd))
* **config_templates:** Fix wrong config example ([ea1fef4](ea1fef4))
* Fix ApexCharts link ([9394dee](9394dee))
* Fix error `data_generator` example ([6d1c7a0](6d1c7a0)), closes [RomRider#34](https://github.com/georgepauna/apexcharts-card/issues/34)
* Fix HACS doc (not yet available by default) ([53fece2](53fece2))
* fix some README glitches ([3dd8b48](3dd8b48))
* Fix some typos ([3df6aed](3df6aed))
* Fix typo in doc ([89ed3c5](89ed3c5))
* Fix typos and broken links ([7789b8f](7789b8f))
* Initial README release ([7a87694](7a87694))
* Missing `title` documentation in the header section ([ff7f35b](ff7f35b))
* Missing doc for `last_updated` ([93ae54a](93ae54a))
* Missing link to the `now` section ([9747257](9747257))
* Update README.md ([b9d49ab](b9d49ab))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants