Coder Social home page Coder Social logo

How to make a histogram about pygwalker HOT 6 CLOSED

karamari avatar karamari commented on May 2, 2024
How to make a histogram

from pygwalker.

Comments (6)

ObservedObserver avatar ObservedObserver commented on May 2, 2024 3

example

Suppose you have a field score, click the dropdown icon of the score field in the measure segment, there will be some transformations you can make, click the bin transformation option. and it create a new filed bin(score) in dimension segment.

use bin(score) as the x-axis and row count as the y-axis and you can get a histogram.

It is not a perfect enough design, I am considering making the field editable so that you can write the expression bin or other computations more easily.

from pygwalker.

ObservedObserver avatar ObservedObserver commented on May 2, 2024 1

image

graphic-walker has supported this feature, will be updated to pygwalker this week @longxiaofei

from pygwalker.

karamari avatar karamari commented on May 2, 2024

Thanks for the quick answer! Awesome that it's implemented already, but I think it'd be great if you could adjust the number of bins, and also if the labels showed exactly what value range each bin represent (e.g. 0-20, 20-40, 40-60)

(and yeah, custom expressions would be awesome too)

from pygwalker.

ilyanoskov avatar ilyanoskov commented on May 2, 2024

I second this, it would be very helpful to be able to select the number of bins for a histogram. I need the histogram in one of the projects I am working on, but can't use Pygwalker for it yet...

from pygwalker.

ibobak avatar ibobak commented on May 2, 2024

I have two problems with bins:

  1. I can't find where is this setting of number of bins? how to get there?
  2. why the histogram is not maximized by default?

from pygwalker.

ibobak avatar ibobak commented on May 2, 2024

Looks like I found where it is: at the creation time of a new field.
But if I want to change the existing field - I cannot do this.

from pygwalker.

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.