area3d_vis icon indicating copy to clipboard operation
area3d_vis copied to clipboard

Area3D with range on X or Y axis

Open ghost opened this issue 8 years ago • 6 comments

Hi all,

I experiencing an issue when trying to create an area3d vizualization with a "range" on axis X or Y. Here's the error message Kibana is showing :

Uncaught Error: Parameter 'start' is not numeric; value: NaN (http://[...]/bundles/kibana.bundle.js?v=14566:157) Version: 5.1.1 Build: 14566 Error: Uncaught Error: Parameter 'start' is not numeric; value: NaN (http://[...]/bundles/kibana.bundle.js?v=14566:157) at window.onerror (http://[...]/bundles/commons.bundle.js?v=14566:69:13503)

Is it actually possible to do that with area3d ?

ghost avatar Feb 01 '17 13:02 ghost

This is related to #3 .

I will investigate on this, but it would seem that it is trying to use a Non Numeric value as a Number. Maybe check your fields?

JuanCarniglia avatar Feb 01 '17 13:02 JuanCarniglia

All fields were checked, i can't find the problem for the moment. If any news pops up i'll mention it. Thanks for your help !

ghost avatar Feb 01 '17 13:02 ghost

Can you paste here your view's configuration?

JuanCarniglia avatar Feb 01 '17 13:02 JuanCarniglia

Sure ! Here it its :

[ { "_id": "test_3D_vis_error", "_type": "visualization", "_source": { "title": "test_3D_vis_error", "visState": "{"title":"test_3D_vis_error","type":"area3d","params":{"graphSelect":{"id":"surface","name":"Surface"},"keepAspectRatio":false,"showGrid":true,"showPerspective":true,"showShadow":false,"xLabel":"X","yLabel":"Y","zLabel":"Z"},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"range","schema":"bucket","params":{"field":"field1","ranges":[{"from":0,"to":1000},{"from":1000,"to":2000}]}},{"id":"3","enabled":true,"type":"terms","schema":"split","params":{"field":"field2","size":10000,"order":"desc","orderBy":"_term","row":true}}],"listeners":{}}", "uiStateJSON": "{"spy":{"mode":{"fill":false,"name":null}}}", "description": "", "savedSearchId": "search_1", "version": 1, "kibanaSavedObjectMeta": { "searchSourceJSON": "{"filter":[]}" } } } ]

ghost avatar Feb 01 '17 14:02 ghost

What do you have in "field1" ? What kind of data?

Keep in mind that the documentation states:

"The visualization needs one Metric (Count, Avg, Sum, Max, Min) which will be the Z value, and two Aggregators (X, Y)."

You are using a Range Configuration which may not comply with the aforementioned configuration requirements.

Please check that.

2017-02-01 11:07 GMT-03:00 Christopher [email protected]:

Sure ! Here it its :

[ { "_id": "test_3D_vis_error", "_type": "visualization", "_source": { "title": "test_3D_vis_error", "visState": "{"title":"test_3D_vis_error","type":"area3d","params":{" graphSelect":{"id":"surface","name":"Surface"},"keepAspectRatio":false," showGrid":true,"showPerspective":true,"showShadow":false,"xLabel":"X" ,"yLabel":"Y","zLabel":"Z"},"aggs":[{"id":"1","enabled": true,"type":"count","schema":"metric","params":{}},{"id":"2" ,"enabled":true,"type":"range","schema":"bucket","params":{" field":"field1","ranges":[{"from":0,"to":1000},{"from": 1000,"to":2000}]}},{"id":"3","enabled":true,"type":"terms"," schema":"split","params":{"field":"field2","size":10000," order":"desc","orderBy":"_term","row":true}}],"listeners":{}}", "uiStateJSON": "{"spy":{"mode":{"fill":false,"name":null}}}", "description": "", "savedSearchId": "search_1", "version": 1, "kibanaSavedObjectMeta": { "searchSourceJSON": "{"filter":[]}" } } } ]

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JuanCarniglia/area3d_vis/issues/5#issuecomment-276665530, or mute the thread https://github.com/notifications/unsubscribe-auth/AOi0OxaO2I-78ch_ouZ3h6tY07oGqU7oks5rYJGzgaJpZM4Lz3KL .

-- Juan Ignacio Carniglia

JuanCarniglia avatar Feb 01 '17 14:02 JuanCarniglia

I just committed a new version of this component with minor changes.

Your aggregations should be done on a NUMERIC field (long). This aggregations are the X / Y positions. Please ensure your properties are valid.

Thanks

JuanCarniglia avatar Sep 14 '17 18:09 JuanCarniglia