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

adding stepped line to line and area charts #9425

Merged
merged 4 commits into from
Dec 23, 2016

Conversation

ppisljar
Copy link
Member

@ppisljar ppisljar commented Dec 9, 2016

ads stepped line interpolation option to line and area charts
closes #1365

screenshot-localhost 5601 2016-12-09 16-00-55

@ppisljar ppisljar added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) review v5.2.0 v6.0.0 labels Dec 9, 2016
@thomasneirynck thomasneirynck self-assigned this Dec 13, 2016
Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

We probably would need a corresponding change in the asciidocs as well.

This is a neat little addition.

FWIW, I'd add a breaking label as well since the UI is different. I'd be good to add this to the release notes, and add the deprecation of the "smooth lines" parameter.

@@ -41,6 +40,16 @@ export default function HistogramVisType(Private) {
value: 'bottom',
text: 'bottom',
}],
interpolationModes: [{
value: 'linear',
text: 'normal',
Copy link
Contributor

Choose a reason for hiding this comment

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

consider renaming to "straight". "normal" sounds funny.

@@ -4,15 +4,17 @@ export default function ColumnHandler(Private) {

const createSeries = (cfg, series) => {
const stacked = ['stacked', 'percentage', 'wiggle', 'silhouette'].includes(cfg.mode);
let interpolate = cfg.interpolate;
if (cfg.smoothLines) interpolate = 'cardinal';
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd add a comment here that this is for backward compatibility when loading URLs or configs.

@tbragin
Copy link
Contributor

tbragin commented Dec 15, 2016

@ppisljar i like this change! very neat.

@thomasneirynck why do you think this is a breaking change? I don't consider a change in UI a breaking change. As long as previous dashboard continue to work, this is just a change in visual builder and is appropriate for a minor release.

@epixa ^^ would you agree?

@epixa
Copy link
Contributor

epixa commented Dec 19, 2016

Generally, I agree with @tbragin on this one. I haven't pulled this down - what changed in the UI other than adding this option?

@ppisljar
Copy link
Member Author

@epixa smooth line checkbox was replaced by a line mode dropdown with straight, smoothed and stepped options. Old charts continue to function.

@epixa
Copy link
Contributor

epixa commented Dec 19, 2016

@ppisljar Great, thanks. Not breaking

Copy link
Contributor

@kobelb kobelb left a comment

Choose a reason for hiding this comment

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

Nice job, LGTM

@ppisljar ppisljar merged commit 29935c3 into elastic:master Dec 23, 2016
elastic-jasper added a commit that referenced this pull request Dec 23, 2016
Backports PR #9425

**Commit 1:**
adding stepped line to line and area charts

* Original sha: be913a4
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-09T14:59:16Z

**Commit 2:**
fixing based on Thomas' review

* Original sha: 1a285e3
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-14T08:27:50Z

**Commit 3:**
updating docs

* Original sha: 03a0e9f
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-19T11:04:04Z

**Commit 4:**
fixing based on Brandons review

* Original sha: 2f86249
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-23T15:04:34Z
ppisljar pushed a commit that referenced this pull request Dec 23, 2016
Backports PR #9425

**Commit 1:**
adding stepped line to line and area charts

* Original sha: be913a4
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-09T14:59:16Z

**Commit 2:**
fixing based on Thomas' review

* Original sha: 1a285e3
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-14T08:27:50Z

**Commit 3:**
updating docs

* Original sha: 03a0e9f
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-19T11:04:04Z

**Commit 4:**
fixing based on Brandons review

* Original sha: 2f86249
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-23T15:04:34Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) review v5.2.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Stepped line
5 participants