Code Monkey home page Code Monkey logo

Comments (4)

yihengli avatar yihengli commented on July 30, 2024 1

I do think that's a good chart to get added. This is how I customize the chart by directly changing the json option.

from krisk import Chart
chart = Chart()
chart.set_title('Test for Pie', x_pos='center')
chart.option['series'] = [{
    'type':
    'pie',
    'radius': ["50%", "80%"],
    'data': [{
        'value': 10,
        'name': 'cool'
    }, {
        'value': 20,
        'name': 'notcool'
    }]
}]
chart.option.pop('xAxis', None)
chart.option.pop('yAxis', None)

chart

Ideally you should see something like:

pie_output

Hope this will help.

from krisk.

napjon avatar napjon commented on July 30, 2024 1

Hi @merz9b,

Yes, pie chart will be added in the future. If you are willing to take a shot, your contribution is very much welcome.

Meanwhile, the visualization is also easy to implement as pointed out by @yihengli's excellent suggestion.

from krisk.

merz9b avatar merz9b commented on July 30, 2024

@yihengli Thanks...

This is certainly a way to customize any charts supported by Echarts...however, it requires some trivial transformations when the data is represented as a dataframe...

from krisk.

napjon avatar napjon commented on July 30, 2024

I have to reopen for self-note in the future to implement this.

from krisk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.