Skip to content

Instantly share code, notes, and snippets.

@okeen
Created June 4, 2013 16:20
Show Gist options
  • Save okeen/5707301 to your computer and use it in GitHub Desktop.
Save okeen/5707301 to your computer and use it in GitHub Desktop.
.spider.graph_data.hide
:ruby
{ chart: { polar: true },
title: { text: t("spider_graph_for") },
pane: { size: "80%" },
xAxis: { categories: group.questions.map(&:unique_id), tickmarkPlacement: 'on', lineWidth: 0 },
yAxis: { gridLineInterpolation: 'polygon', lineWidth: 0, min: 0 },
series: [ {name: t("people_average"),
data: group.questions.map(&:average),
pointPlacement: 'on'},
{name: t("your_score"),
data: group.questions.map(&:average),
pointPlacement: 'on'}]
}.to_json.html_safe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment