Skip to content
Snippets Groups Projects
Unverified Commit cdf676f1 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

#13095 Repro: Data point values uses formatting style of first serie on all series (#15825)

parent 88e84de3
No related branches found
No related tags found
No related merge requests found
......@@ -35,4 +35,36 @@ describe("scenarios > visualizations > line chart", () => {
cy.findByText("Right").click();
cy.get(Y_AXIS_RIGHT_SELECTOR);
});
it.skip("should be able to format data point values style independently on multi-series chart (metabase#13095)", () => {
visitQuestionAdhoc({
dataset_query: {
type: "query",
query: {
"source-table": ORDERS_ID,
aggregation: [
["sum", ["field", ORDERS.TOTAL, null]],
[
"aggregation-options",
["/", ["avg", ["field", ORDERS.QUANTITY, null]], 10],
{ "display-name": "AvgPct" },
],
],
breakout: [["field", ORDERS.CREATED_AT, { "temporal-unit": "year" }]],
},
database: 1,
},
display: "line",
visualization_settings: {
"graph.show_values": true,
column_settings: {
'["name","expression"]': { number_style: "percent" },
},
"graph.dimensions": ["CREATED_AT"],
"graph.metrics": ["sum", "expression"],
},
});
cy.get(".value-labels").contains("30%");
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment