Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
8 subscribers
Views
3645 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I thought I understood how to make a bar chart in SAIL, but apparently I'm m
John Stretton
over 8 years ago
I thought I understood how to make a bar chart in SAIL, but apparently I'm missing something. The expression below produces the chart which is shown in the attached screenshot. I'd like each bar to have its own label next to the bar, and I thought this was done using the categories parameter, but it's grouping all three bars into the same category. How do I assign each bar to its own category so that it can have its own label?
a!barChartField(
label: "Safety Incident Pyramid",
categories: {"test 1", "test 2", "test 3"},
series: {
a!chartSeries(
label: "test 1",
data: 5
),
a!chartSeries(
label: "test 2",
data: 50
),
a!chartSeries(
label: "test 3",
data: 150
)
},
showDataLabels: true
),
OriginalPostID-213863
OriginalPostID-213863
Discussion posts and replies are publicly visible
Parents
0
rajivr
Certified Associate Developer
over 8 years ago
Correction: The categories refers to each element in the data of chartseries. So you have to map them accordingly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
rajivr
Certified Associate Developer
over 8 years ago
Correction: The categories refers to each element in the data of chartseries. So you have to map them accordingly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data