AnyChart, bar with three value

0
Hello I have created a chart using AnyChart through JSON, but I have a question: I have the following data points: 1. Article number: 123456789-0000, Used: 34, Description of the article number is: VBMT162 2.Article number: 123548654-0000, Used: 54, Description of the article number is: VBMT093 3.Article number: 123456789-0022, Used: 23, Description of the article number is: VBMT04 X:123456789-0000 Y:34  X:123548654-0000 Y:54  X:123456789-0022 Y:23   and then these:  X:123456789-0000 Y:33  X:123548654-0000 Y:50  X:123456789-0022 Y:20 The chart displays nicely, comparing the article numbers, but instead of X values (e.g., 123456789-0000), I need the chart to show the description of the respective article number (e.g : VBMT04).The article numbers must be compared, but the chart must display the description of the respective article number.   My Json: [{"x":["40","28","20","10","10","3","2","2"],"y":["294851070-0000","004121589-0000","006953042-0000","294395733-0000","006988172-0000","292521553-0000","294471685-0000","298810875-0000"],"type":"bar","name":"Aktualne","orientation":"h","texttemplate":"%{x}","textposition":"outside","legend":{"orientation":"h","y":"auto","xanchor":"center","yanchor":"center"},"marker":{"color":["red","red","green","red","red","green","green","green"]}},{"x":["34","25","21","8","6","3","3","2","2","2"],"y":["006953042-0000","294851070-0000","004121589-0000","294395733-0000","006988172-0000","294471685-0000","292521553-0000","250268787-0000","298810875-0000","029163986-0000"],"type":"bar","name":"Historia/Ref","orientation":"h","texttemplate":"%{x}","textposition":"outside","legend":{"orientation":"h","y":"auto","xanchor":"center","yanchor":"center"},"marker":{"color":["blue","blue","blue","blue","blue","blue","blue","blue","blue","blue"]}}]       maybe like this? [  {    "x": [      "34",      "30",      "20",      "14",      "3",      "2"    ],    "y": [      "294851070-0000",      "006953042-0000",      "294395733-0000",      "004121589-0000",      "250268787-0000",      "294471685-0000"    ],    "y_labels": [      "koko1",      "koko2",      "koko3",      "koko4",      "koko5",      "koko6"    ],    "type": "bar",    "name": "Aktualne",    "orientation": "h",    "texttemplate": "%{x}",    "textposition": "outside",    "legend": {      "orientation": "h",      "y": "auto",      "xanchor": "center",      "yanchor": "center"    },    "marker": {      "color": [        "red",        "green",        "red",        "green",        "red",        "green"      ]    }  },  {    "x": [      "34",      "25",      "21",      "8",      "6",      "3",      "3",      "2",      "2",      "2"    ],    "y": [      "006953042-0000",      "294851070-0000",      "004121589-0000",      "294395733-0000",      "006988172-0000",      "294471685-0000",      "292521553-0000",      "250268787-0000",      "298810875-0000",      "029163986-0000"    ],    "y_labels": [      "koko2",      "koko1",      "koko4",      "koko3",      "koko5",      "koko6",      "koko7",      "koko8",      "koko9",      "koko10"    ],    "type": "bar",    "name": "Historia/Ref",    "orientation": "h",    "texttemplate": "%{x}",    "textposition": "outside",    "legend": {      "orientation": "h",      "y": "auto",      "xanchor": "center",      "yanchor": "center"    },    "marker": {      "color": [        "blue",        "blue",        "blue",        "blue",        "blue",        "blue",        "blue",        "blue",        "blue",        "blue"      ]    }  }]
asked
0 answers