@times-visuals/poll-of-polls
v1.2.0
Published
Poll of polls component
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-pollsUsage
Required parameters:
data: an array of objects containing adateand apollfor a partyaverages: an array of objects containing adateand 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"
/>;