Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

[UI] Charts Enhancements: Themes, DPI, legend hiding #4291

Merged

Conversation

hreichert
Copy link
Contributor

@hreichert hreichert commented Sep 17, 2017

Add some enhancements to the ChartServlet, DefaultChartProvider, REST API, BasicUI/ClassicUI to support the following things:

  • Chart themes for different looks
  • dpi parameter for dynamic sizes based on DPI
  • Automatic showing/hiding of the legend based on number of chart series
  • legend parameter to hide/show the chart legend

Please see issue #4288 for all details.
The first comment has a up2date description.

❗ This breaks the OH1 compatibility layer: org.openhab.ui.chart.internal.ChartProviderDelegate
If this gets merged, I create a PR in openhab/openhab-core


Renderings
Default theme "bright", default settings:
chart_1
Theme "dark", default settings:
chart_2
Theme "black", default settings:
chart_3

@hreichert hreichert force-pushed the 4288-charts-enhancements branch 3 times, most recently from 575dddc to e14c21f Compare September 21, 2017 00:27
@hreichert hreichert changed the title [WIP] [Charts] Enhancements to Charts: Themes, FontScale, HideLegend (#4288) [UI] Charts Enhancements: Themes, DPI, legend hiding Sep 21, 2017
@kaikreuzer kaikreuzer added the UI label Sep 22, 2017
Copy link
Contributor

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

Many thanks, looks all perfect!

@kaikreuzer kaikreuzer merged commit 4dd53d9 into eclipse-archived:master Sep 25, 2017
@hreichert hreichert deleted the 4288-charts-enhancements branch September 25, 2017 10:48
@hreichert
Copy link
Contributor Author

Thank you @kaikreuzer

@kaikreuzer
Copy link
Contributor

Time to prepare the PR for openhab-core now :-)

@hreichert
Copy link
Contributor Author

Sure, here you go: openhab/openhab-core#215
But the travis build for this commit will not succeed now...

mueller-ma added a commit to mueller-ma/openhab.android that referenced this pull request Sep 29, 2017
This commit enhances charts to support themes, scale legend according to
dpi and create option to hide legend

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
mueller-ma added a commit to mueller-ma/openhab.android that referenced this pull request Sep 30, 2017
This commit enhances charts to support themes, scale legend according to
dpi and create option to hide legend

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
digitaldan pushed a commit to openhab/openhab-android that referenced this pull request Oct 8, 2017
* Make use of eclipse-archived/smarthome#4291

This commit enhances charts to support themes, scale legend according to
dpi and create option to hide legend

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>

* Read legend setting from oh server

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>

* Use Boolean

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
@kaikreuzer kaikreuzer added this to the 0.9.0 milestone Nov 30, 2017
@openhab-bot
Copy link
Contributor

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/charts-are-not-working-as-before-anymore-broken/41208/41

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants