GitHub user tinkoff-dwh opened 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
    
![2](https://cloud.githubusercontent.com/assets/25951039/23853622/364b74a0-080f-11e7-9860-c7de95bc1507.png)
    after
    
![1](https://cloud.githubusercontent.com/assets/25951039/23853621/364936b8-080f-11e7-9ac6-bbbdd8235be3.png)
    
    ### 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
    
----
commit be34560e98bd6d58f4083f7611430924b6c6ebdf
Author: Tinkoff DWH <[email protected]>
Date:   2017-03-13T10:48:23Z

    [ZEPPELIN-2252] discreteness of line charts

----


---
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.
---

Reply via email to