Skip to contents

Adds an ojs code chunk that generates a barplot suitable for a multiple choice grid google form.

Usage

cq_ojs_multiple_choice_grid_barplot(
  id,
  height = "",
  marginLeft = 100,
  domain,
  range
)

Arguments

id

The id of the form to be plotted

height

The height of the plot.

marginLeft

Width of the left margin.

domain

Category values in required order.

range

Fill colours to use

Details

If this plot this code generates is not suitable for your needs, you can modify the code this function produces.