<commit_before>import _ from 'lodash'
import React from 'react'

import HighChart from 'components/highchart/HighChart'
import format from 'utilities/format'

class StackedPercentColumnChart extends HighChart {

  constructor (props) {
    super(props)
    this.state = { stack_mode: props.type_params.stack_mode }
  }

  setConfig = function () {
    const self = this
    const props = this.props
    const first_indicator = props.selected_indicators[0]
    const multipleCampaigns = props.datapoints.meta.campaign_list.length > 1
    this.config = {
      chart: {
        type: 'column'
      },
      series: this.setSeries(),
      xAxis: this.setXAxis(multipleCampaigns),
      yAxis: {
        title: { text: '' },<commit_msg>Remove campaign_list dependency in StackedPercentColumnChart<commit_after>import _ from 'lodash'
import React from 'react'

import HighChart from 'components/highchart/HighChart'
import format from 'utilities/format'

class StackedPercentColumnChart extends HighChart {

  constructor (props) {
    super(props)
    this.state = { stack_mode: props.type_params.stack_mode }
  }

  setConfig = function () {
    const self = this
    const props = this.props
    const first_indicator = props.selected_indicators[0]
    const multipleCampaigns = _.toArray(props.datapoints.grouped).length > 1
    this.config = {
      chart: {
        type: 'column'
      },
      series: this.setSeries(),
      xAxis: this.setXAxis(multipleCampaigns),
      yAxis: {
        title: { text: '' },
{'fraction_non_alphanumeric': 0.09900990099009901, 'fraction_numerical': 0.0026402640264026403, 'mean_word_length': 3.343839541547278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2368415', 'n_tokens_mistral': 465, 'n_tokens_neox': 455, 'n_words': 106}