GitHub user tinkoff-dwh reopened a pull request:
https://github.com/apache/zeppelin/pull/2129
[ZEPPELIN-2252] discreteness of line charts
### What is this PR for?
Added a discreteness in the line chart. Correcting the display of the
chart, when the values does not exist at the point (by default Y is set to 0,
at the moment). A value of 0 is unclear (it is real value from data or it is
default value).
### What type of PR is it?
Improvement
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-2252
### How should this be tested?
1. Spark interpreter
```
var text = """g1,1
g1,1
g1,2
g1,3
g1,5
g1,5
g2,1
g2,1
g2,2
g2,2
g2,6
g2,6
g2,7
g2,7
g2,7"""
val array = sc.parallelize(text.split('\n'))
case class Line(group: String, value: Integer)
val line = array.map(s => s.split(",")).map(
s => Line(s(0),
s(1).toInt
)
).toDF()
line.registerTempTable("lines")
```
2.
```
%sql
select *from lines
```
Settings of chart on screenshot
### Screenshots (if appropriate)
before

after

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tinkoff-dwh/zeppelin ZEPPELIN-2252
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/2129.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2129
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---