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

PR: add pictorialbar chart type and fix some bugs #1158

Merged
merged 15 commits into from
Jun 1, 2019

Conversation

chenjiandongx
Copy link
Member

本次 PR 内容,

  1. 新增 PictorialBar 图表类型
  2. 修复 bugs
  3. 提供新 features

@codecov-io
Copy link

codecov-io commented May 31, 2019

Codecov Report

Merging #1158 into dev will increase coverage by 0.36%.
The diff coverage is 93.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1158      +/-   ##
==========================================
+ Coverage   86.57%   86.94%   +0.36%     
==========================================
  Files          90       92       +2     
  Lines        1981     2014      +33     
==========================================
+ Hits         1715     1751      +36     
+ Misses        266      263       -3
Impacted Files Coverage Δ
pyecharts/charts/basic_charts/gauge.py 100% <ø> (ø) ⬆️
pyecharts/options/series_options.py 87.75% <ø> (ø) ⬆️
test/test_series_options.py 100% <ø> (ø) ⬆️
test/test_pictorialbar.py 100% <100%> (ø)
pyecharts/components/table.py 88.88% <100%> (ø) ⬆️
pyecharts/charts/basic_charts/bmap.py 100% <100%> (ø) ⬆️
pyecharts/globals.py 100% <100%> (ø) ⬆️
pyecharts/charts/basic_charts/pictorialbar.py 100% <100%> (ø)
pyecharts/charts/__init__.py 100% <100%> (ø) ⬆️
pyecharts/components/image.py 44.44% <50%> (ø) ⬆️
... and 4 more

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 acf9b10...46a3679. Read the comment docs.

sunhailin-Leo
sunhailin-Leo previously approved these changes May 31, 2019
@@ -53,8 +53,9 @@ def add(
self._zlevel += 1

data = []
if type_ == ChartType.LINES and self._coordinate_system == "bmap":
data = data_pair
if self._coordinate_system == "bmap":
Copy link
Member

Choose a reason for hiding this comment

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

GeoChartBase shall not take care of the details of child. Otherwise, all children come back to base for help.

else:
lng, lat = self.get_coordinate(n)
data.append({"name": n, "value": [lng, lat, v]})
data = self._feed_data(data_pair, type_)
Copy link
Member Author

Choose a reason for hiding this comment

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

这样如何?

Copy link
Member

Choose a reason for hiding this comment

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

嗯 oop 的性能用上了。

Copy link
Member

@chfw chfw left a comment

Choose a reason for hiding this comment

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

Good to go

@chenjiandongx chenjiandongx merged commit dc7617f into dev Jun 1, 2019
@chenjiandongx chenjiandongx deleted the pictorial-bar-charts branch June 1, 2019 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants