@times-visuals/poll-of-polls
v1.2.0
Published
Poll of polls component
Downloads
5
Keywords
Readme
Poll of polls
This is the description for the component
Installation
# Yarn
$ yarn add @times-visuals/poll-of-polls
# npm
$ npm add @times-visuals/poll-of-polls
Usage
Required parameters:
data
: an array of objects containing adate
and apoll
for a partyaverages
: an array of objects containing adate
and an averageparties
: an array of objects containing a list of parties and colours associated with them
import PollOfPolls from "@times-visuals/poll-of-polls";
<PollOfPolls
data={data}
averages={averages}
parties={parties}
yDomain={[0, 100]}
circleRadius={2}
startDate="2018-06-01"
endDate="2018-09-10"
dataSource="Times research"
/>;