Giter Club home page Giter Club logo

Comments (8)

rgbkrk avatar rgbkrk commented on July 22, 2024 1

Trying that out now, getting a long line of blue squares. 😉

screen shot 2017-07-19 at 6 30 26 pm

from facets.

jameswex avatar jameswex commented on July 22, 2024

Something similar is supported now but still needs documenting. The facets-overview element has a method getStatsProto that accepts an array of objects where each object is a dict of features to values (so it accepts json when it is an array of flat objects) which returns the calculated proto which can then be provided as the protoInput param on the element.

Does that work for your use case?

from facets.

jameswex avatar jameswex commented on July 22, 2024

You can see it being used on the gh-pages branch which contains the demo site's code: https://github.com/PAIR-code/facets/blob/gh-pages/index.html#L237

from facets.

rgbkrk avatar rgbkrk commented on July 22, 2024

In case you're curious, I was playing with this here: nteract/commuter#211

from facets.

jameswex avatar jameswex commented on July 22, 2024

Were you able to get overview working with the getStatsProto method to convert an array of data item dicts into the feature stats proto?

from facets.

rgbkrk avatar rgbkrk commented on July 22, 2024

Nope.

from facets.

jameswex avatar jameswex commented on July 22, 2024

Not sure what those crazy blue squares are (is the facets-overview element taking up a reasonable width and height?), but if the getStatsProto method is returning a valid proto object, then setting the protoInput property on the polymer element to that proto should be all it takes. At first glance, the code you linked to seems reasonable, although I'm not familiar with react.

from facets.

kelvinau avatar kelvinau commented on July 22, 2024

Because facets-overview supports multiple sources of data, getStatsProto takes an array of data in a format of:

[ {data: [], name: 'test.csv'}, {data: [], name: 'test2.csv'} ]

where the array in data has the same json data format that is used for facets-dive.

from facets.

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.