Skip to content
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

Chart settings don't update existing charts correctly #12598

Closed
pemontto opened this issue Jun 30, 2017 · 2 comments
Closed

Chart settings don't update existing charts correctly #12598

pemontto opened this issue Jun 30, 2017 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Visualizations Generic visualization features (in case no more specific feature label is available)

Comments

@pemontto
Copy link

Kibana version: 5.4.3

Elasticsearch version: 5.4.3

Server OS version: Centos 7

Browser version: Chrome 59

Browser OS version: Mac OS X 10.12

Original install method (e.g. download page, yum, from source, etc.): tar

Description of the problem including expected versus actual behavior:
When editing some line or bar charts created before 5.4 changing some settings doesn't have any effect. In particular changing the line mode from smoothed to stepped to straight doesn't have any effect, this includes after saving and viewing on the viz on a dashboard.

Steps to reproduce:

  1. An existing line chart charting a terms agg (y-axis) of DKIM pass and fail over time (@timestamp)
    vis state:
{
  "title": "DMARC - Report Frequency",
  "type": "line",
  "params": {
    "shareYAxis": true,
    "addTooltip": true,
    "addLegend": true,
    "showCircles": true,
    "smoothLines": true,
    "interpolate": "linear",
    "scale": "linear",
    "drawLinesBetweenPoints": true,
    "radiusRatio": 9,
    "times": [],
    "addTimeMarker": false,
    "defaultYExtents": false,
    "setYExtents": false,
    "yAxis": {}
  },
  "aggs": [
    {
      "id": "1",
      "type": "count",
      "schema": "metric",
      "params": {}
    },
    {
      "id": "2",
      "type": "date_histogram",
      "schema": "segment",
      "params": {
        "field": "@timestamp",
        "interval": "d",
        "customInterval": "2h",
        "min_doc_count": 1,
        "extended_bounds": {}
      }
    },
    {
      "id": "3",
      "type": "terms",
      "schema": "group",
      "params": {
        "field": "dkim",
        "size": 5,
        "order": "desc",
        "orderBy": "1"
      }
    }
  ],
  "listeners": {}
}
  1. Edit the vis and change the line mode to stepped, straight, smoothed and no changes take place. The vis state now looks like:
{
  "title": "@DMARC - Report Frequency",
  "type": "line",
  "params": {
    "shareYAxis": true,
    "addTooltip": true,
    "addLegend": true,
    "showCircles": true,
    "smoothLines": true,
    "interpolate": "linear",
    "scale": "linear",
    "drawLinesBetweenPoints": true,
    "radiusRatio": 9,
    "times": [],
    "addTimeMarker": false,
    "defaultYExtents": false,
    "setYExtents": false,
    "yAxis": {},
    "grid": {
      "categoryLines": false,
      "style": {
        "color": "#eee"
      }
    },
    "categoryAxes": [
      {
        "id": "CategoryAxis-1",
        "type": "category",
        "position": "bottom",
        "show": true,
        "style": {},
        "scale": {
          "type": "linear"
        },
        "labels": {
          "show": true,
          "truncate": 100
        },
        "title": {
          "text": "@timestamp per day"
        }
      }
    ],
    "valueAxes": [
      {
        "id": "ValueAxis-1",
        "name": "LeftAxis-1",
        "type": "value",
        "position": "left",
        "show": true,
        "style": {},
        "scale": {
          "type": "linear",
          "mode": "normal"
        },
        "labels": {
          "show": true,
          "rotate": 0,
          "filter": false,
          "truncate": 100
        },
        "title": {
          "text": "Count"
        }
      }
    ],
    "seriesParams": [
      {
        "show": true,
        "mode": "normal",
        "type": "line",
        "drawLinesBetweenPoints": true,
        "showCircles": true,
        "interpolate": "step-after",
        "lineWidth": 2,
        "data": {
          "id": "1",
          "label": "Count"
        },
        "valueAxis": "ValueAxis-1"
      }
    ],
    "legendPosition": "right"
  },
  "aggs": [
    {
      "id": "1",
      "enabled": true,
      "type": "count",
      "schema": "metric",
      "params": {}
    },
    {
      "id": "2",
      "enabled": true,
      "type": "date_histogram",
      "schema": "segment",
      "params": {
        "field": "@timestamp",
        "interval": "d",
        "customInterval": "2h",
        "min_doc_count": 1,
        "extended_bounds": {}
      }
    },
    {
      "id": "3",
      "enabled": true,
      "type": "terms",
      "schema": "group",
      "params": {
        "field": "dkim",
        "size": 5,
        "order": "desc",
        "orderBy": "1"
      }
    }
  ],
  "listeners": {}
}

Errors in browser console (if relevant):
No errors or warning logged

out

@cjcenizal cjcenizal added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) bug Fixes for quality problems that affect the customer experience labels Jul 3, 2017
@pemontto
Copy link
Author

pemontto commented Jul 4, 2017

I'm assuming a related bug, when I edit a chart and change the X-axis position to be on the left or right all labels disappear except one. I can produce an example of that if required.

@ppisljar
Copy link
Member

ppisljar commented Jul 5, 2017

closed by #11958

@ppisljar ppisljar closed this as completed Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Visualizations Generic visualization features (in case no more specific feature label is available)
Projects
None yet
Development

No branches or pull requests

3 participants