How to use the @microsoft/sp-lodash-subset.merge function in @microsoft/sp-lodash-subset

To help you get started, we’ve selected a few @microsoft/sp-lodash-subset examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SharePoint / sp-dev-fx-webparts / samples / react-multipage / src / webparts / poll / components / Results / Results.tsx View on Github external
defaults.global.legend.display = false;
    defaults.global.colors = [
      '#97BBCD', // blue
      '#DCDCDC', // light grey
      '#F7464A', // red
      '#46BFBD', // green
      '#FDB45C', // yellow
      '#949FB1', // grey
      '#4D5360'  // dark grey
    ];
    this.convertedColors = defaults.global.colors.map(this.convertColor);
    // -- from angular-chart.js

    this.data = {
      labels: [],
      datasets: [merge({}, this.convertedColors[0], {
        label: 'Number of votes',
        data: []
      })]
    };
    this.options = {
      scales: {
        xAxes: [{
          gridLines: {
            display: false
          },
          scaleLabel: {
            display: true,
            labelString: 'Number of votes'
          }
        }]
      }