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 ECharts pane [doc-build] #1484

Merged
merged 4 commits into from
Jul 21, 2020
Merged

Add ECharts pane [doc-build] #1484

merged 4 commits into from
Jul 21, 2020

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Jul 20, 2020

Adds an ECharts pane built on the echarts.js library. This was very straightforward to do and ECharts looks very polished with nice animated transitions and a number of BI indicator types which will round out the functionality of Panel for building BI type dashboards.

gauge = {
    'tooltip': {
        'formatter': '{a} <br/>{b} : {c}%'
    },
    'series': [
        {
            'name': 'Gauge',
            'type': 'gauge',
            'detail': {'formatter': '{value}%'},
            'data': [{'value': 50, 'name': 'Value'}]
        }
    ]
};
gauge_pane = pn.pane.ECharts(gauge, width=400, height=400)
gauge_pane

Screen Shot 2020-07-20 at 2 07 54 PM

Cc: @MarcSkovMadsen

@philippjfr philippjfr added the type: enhancement Minor feature or improvement to an existing feature label Jul 20, 2020
@philippjfr philippjfr added this to the v0.10.0 milestone Jul 20, 2020
@codecov
Copy link

codecov bot commented Jul 21, 2020

Codecov Report

Merging #1484 into master will increase coverage by 0.13%.
The diff coverage is 78.43%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1484      +/-   ##
==========================================
+ Coverage   86.04%   86.18%   +0.13%     
==========================================
  Files         139      141       +2     
  Lines       15567    15706     +139     
==========================================
+ Hits        13395    13536     +141     
+ Misses       2172     2170       -2     
Impacted Files Coverage Δ
panel/config.py 45.64% <ø> (ø)
panel/pane/echarts.py 73.17% <73.17%> (ø)
panel/models/echarts.py 100.00% <100.00%> (ø)
panel/pane/__init__.py 100.00% <100.00%> (ø)
panel/tests/widgets/test_tables.py 98.11% <0.00%> (+0.79%) ⬆️
panel/widgets/tables.py 95.17% <0.00%> (+8.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1097452...2074fb8. Read the comment docs.

@philippjfr philippjfr changed the title Add ECharts pane Add ECharts pane [doc-build] Jul 21, 2020
@philippjfr philippjfr merged commit 0fddf3b into master Jul 21, 2020
@philippjfr philippjfr deleted the echarts branch July 21, 2020 12:02
philippjfr added a commit that referenced this pull request Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant