Comments (8)
Trying that out now, getting a long line of blue squares. 😉
from facets.
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.
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.
In case you're curious, I was playing with this here: nteract/commuter#211
from facets.
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.
Nope.
from facets.
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.
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)
- Binning | X-Axis selection is not rendering correctly as a dropdown HOT 8
- HTML Imports is deprecated error still here! HOT 5
- Cannot copy text from side panel HOT 2
- Is it possible to increase the max size of the atlas?
- How to load a non local image atlas?
- Questions about Facets structure and dependencies HOT 2
- Facets buttons still too big HOT 1
- Facets as a Data Studio community report HOT 3
- ProtoFromDataFrames fails for dataframes with categorical columns HOT 6
- Can not show column name in jupyter notebook. HOT 3
- How to save the tool outside the jupyter notebook so that the images appear on the display? HOT 4
- Custom stats cut-off with long names
- Why the facets button size is too big to see (again) HOT 2
- Support numpy >= 1.23 HOT 3
- facets dive demo no longer builds HOT 4
- Facet broken under np 1.23
- How to get started with Facets for a simple one-page website? HOT 6
- facets dive is not working in colab HOT 2
- Generate proto files to support protobuf 4.x.x and protoc 3.19.0 HOT 6
- facets_overview is failing with numpy-1.23.5 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facets.