Skip to content
This repository has been archived by the owner. It is now read-only.

Problem with changing statistical function of field chart #1604

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

Problem with changing statistical function of field chart #1604

bernd opened this issue Sep 15, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@bernd
Copy link
Contributor

@bernd 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
Copy link
Member

@edmundoa 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
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 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
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 the same names for statistical functions on field statistics and
field graphs.

Refs #1604
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants