<commit_before>import { hmohiv } from '../util/datasets';
import showComponent from '../util/showComponent';

window.onload = () => {
  showComponent('SurvivalPlot', 'div', {
    data: hmohiv,
    time: 'time',
    censor: 'censor',
    group: 'drug',
    width: 625,
    height: 540,
    padding: {
      left: 45,
      right: 130,
      top: 20,
      bottom: 40
    },
    xAxis: {
      title: 'days'
    },
    legend: false,
    legendTitle: 'Drug',<commit_msg>Render legend in demo app<commit_after>import { hmohiv } from '../util/datasets';
import showComponent from '../util/showComponent';

window.onload = () => {
  showComponent('SurvivalPlot', 'div', {
    data: hmohiv,
    time: 'time',
    censor: 'censor',
    group: 'drug',
    width: 625,
    height: 540,
    padding: {
      left: 45,
      right: 130,
      top: 20,
      bottom: 40
    },
    xAxis: {
      title: 'days'
    },
    legend: true,
    legendTitle: 'Drug',
{'fraction_non_alphanumeric': 0.16050686378035903, 'fraction_numerical': 0.03167898627243928, 'mean_word_length': 2.34982332155477, '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': '4867056', 'n_tokens_mistral': 365, 'n_tokens_neox': 328, 'n_words': 81}