Fitnesse: How to click on Pie chart slice

Certified Associate Developer

Hi everyone Can anyone help me how to write script for clicking on slice in the pie chart

I have tired with this script : |click on pie chart | Approved Expense | pie slice | Local Travel[1] |

Thank you in advance

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to shivaram

    Please try this, it is clickable on the different sections of pie chart. You can perform any operation on the clicks.

    a!localVariables(
      local!ValueSaved,
      a!pieChartField(
        label: "New Hires by Department",
        instructions: "The number of new employees hired by each department in 2019",
        series: {
          a!chartSeries(
            label: "Engineering",
            data: 12,
            links: a!dynamicLink(value: 1, saveInto: local!ValueSaved)
          ),
          a!chartSeries(
            label: "Professional Services",
            data: 9,
            links: a!dynamicLink(value: 2, saveInto: local!ValueSaved)
          ),
          a!chartSeries(label: "Sales", data: 8)
        },
        colorScheme: "OCEAN",
        showDataLabels: true,
        showTooltips: true,
        showAsPercentage: false
      )
    )

Children