New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with changing statistical function of field chart #1604

Closed
bernd opened this Issue Sep 15, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@bernd
Contributor

bernd commented Sep 15, 2015

I generated a chart for a field in the search UI, changed the value to "total" and added the chart to a dashboard. The widget on the dashboard looks correct (same as in the search UI) and the database entry for it looks like this. ("valuetype": "total")

        {
            "creator_user_id" : "admin",
            "cache_time" : 10,
            "description" : "Field graph",
            "id" : "e70fbc12-efe3-4f9c-a859-c99856166ec3",
            "type" : "field_chart",
            "config" : {
                "valuetype" : "total",
                "timerange" : {
                    "type" : "relative",
                    "range" : 3600
                },
                "renderer" : "area",
                "interpolation" : "linear",
                "field" : "nf_bytes",
                "query" : "*",
                "interval" : "minute"
            }
        }

Then on the dashboard I changed the "Statistical function" of the widget to "Mean" and then back to "Total". Now the widget looks different and the database entry has count instead of total for the valuetype config option.

        {
            "creator_user_id" : "admin",
            "cache_time" : 10,
            "description" : "Field graph",
            "id" : "e70fbc12-efe3-4f9c-a859-c99856166ec3",
            "type" : "field_chart",
            "config" : {
                "valuetype" : "count",
                "timerange" : {
                    "type" : "relative",
                    "range" : 3600
                },
                "renderer" : "area",
                "interpolation" : "linear",
                "field" : "nf_bytes",
                "query" : "*",
                "interval" : "minute"
            }
        }

Is this a bug or just confusing naming of the statistical function? I expected to get the "valuetype": "total" back when I changed the statistical function back to "Total".

@bernd bernd added the bug label Sep 15, 2015

@edmundoa

This comment has been minimized.

Member

edmundoa commented Sep 15, 2015

Apparently there is some mix up with the statistical values used in the statistical widgets and field charts, I can confirm this issue.

@bernd bernd added this to the 1.2.1 milestone Sep 15, 2015

@edmundoa edmundoa self-assigned this Sep 15, 2015

edmundoa added a commit that referenced this issue Sep 16, 2015

Use field graphs' statistical functions on form
When editing field graph widgets, use their supported functions instead
of those from the statistical value widgets.

Fixes #1604

edmundoa added a commit that referenced this issue Sep 16, 2015

Use consistent statistical function naming
Use the same names for statistical functions on field statistics and
field graphs.

Refs #1604

@joschi joschi closed this in #1608 Sep 21, 2015

edmundoa added a commit that referenced this issue Oct 13, 2015

Use field graphs' statistical functions on form
When editing field graph widgets, use their supported functions instead
of those from the statistical value widgets.

Fixes #1604

edmundoa added a commit that referenced this issue Oct 13, 2015

Use consistent statistical function naming
Use the same names for statistical functions on field statistics and
field graphs.

Refs #1604
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment