function ScoresGraph(props) {
  return (
    <GeneralLineChart
      id="myScores"
      labels={props.time}
      data={[
        {
          label: 'Pain Score',
          data: props.pain,
        },
        {
          label: 'Limitations Score',
          data: props.limit,
        },
        {
          label: 'Walking Score',
          data: props.walking,
        },
        {
          label: 'Walking Surfaces Score',
          data: props.surface,
        },
        {
          label: 'Total Score',
          data: props.total,
        },
      ]}
      title="Progress Scores"
      xLabel="Date/Time"
      yLabel="Scores"
      linkList={props.compId.map((compId) => `/Composition?compId=${compId}`)}
    />
  );
}
/**
 * Build a graph based on arrays of standard pain scores and an array of times
 * @param props
 * @returns {*}
 * @constructor
 */
Build a graph based on arrays of standard pain scores and an array of times
@param props
@returns {*}
@constructor
Build a graph based on arrays of standard pain scores and an array of times @param props @returns { * } @constructor
function ScoresGraph(props) {
  return (
    <GeneralLineChart
      id="myScores"
      labels={props.time}
      data={[
        {
          label: 'Pain Score',
          data: props.pain,
        },
        {
          label: 'Limitations Score',
          data: props.limit,
        },
        {
          label: 'Walking Score',
          data: props.walking,
        },
        {
          label: 'Walking Surfaces Score',
          data: props.surface,
        },
        {
          label: 'Total Score',
          data: props.total,
        },
      ]}
      title="Progress Scores"
      xLabel="Date/Time"
      yLabel="Scores"
      linkList={props.compId.map((compId) => `/Composition?compId=${compId}`)}
    />
  );
}
function ScoresGraph ( props ) { return ( < GeneralLineChart id = "myScores" labels = { props . time } data = { [ { label : 'Pain Score' , data : props . pain , } , { label : 'Limitations Score' , data : props . limit , } , { label : 'Walking Score' , data : props . walking , } , { label : 'Walking Surfaces Score' , data : props . surface , } , { label : 'Total Score' , data : props . total , } , ] } title = "Progress Scores" xLabel = "Date/Time" yLabel = "Scores" linkList = { props . compId . map ( ( compId ) => ` ${ compId } ` ) } / > ) ; }
Build a graph based on arrays of standard pain scores and an array of times
 @param props
 @returns {*}
 @constructor
Build a graph based on arrays of standard pain scores and an array of times @param props @returns { * } @constructor