Slope and Dumbbell Charts for Before-After Comparisons
Show change between two points clearly.
The Open buttons send the prompt text as currently shown below to that site only when you click. Fill in the placeholders first.
Plan a slope or dumbbell chart. Categories and two time points of values: [CATEGORIES_VALUES]. Message: [MESSAGE]. Choose between slope, dumbbell, and grouped bar for my data and explain why. Provide Python code for the chosen chart with labelled endpoints, sorted by change, highlighting the categories that matter and muting the rest, and a title that states the finding. Add notes on scale (shared axis, zero line), what to do with many categories, and accessible colours. Include a text alternative with the table of values and changes. Add a short example with six invented categories, the chart specification in words, and the title and caption. Include advice on what to do when some categories fall and others rise, and a test of whether the chart still works when printed in greyscale. Also give me a decision rule for when the chart has too many lines to read, and how to reduce them without hiding important changes. Include a suggestion for labelling the endpoints with values and for choosing a sort order that serves the message, plus a short caption written for an invented example so that I can see the expected tone.
Fill in before use
Optional: type your details and the prompt above updates. Nothing is saved or sent.
Replace each bracketed placeholder with your own details, then paste into Any AI or another assistant.