miloschuman / yii2-highcharts

Highcharts widget for Yii 2 Framework
http://www.yiiframework.com/extension/yii2-highcharts-widget/
MIT License
166 stars 63 forks source link

modules/organization #84

Closed Solonin closed 3 years ago

Solonin commented 4 years ago

Hello Please tell me why it doesn't work:

echo Highcharts::widget([
    'scripts' => [
        'highcharts-more',
        'modules/organization',
        'modules/sankey',
        'modules/accessibility'
    ],
    'options' => [
        'title' => ['text' => 'Test organization'],        
        'chart' => [
            'type' => 'organization'
        ],
        'series' => [[                
                'name' => 'Highsoft',
                'keys' => ['from', 'to'],
                'data' => [
                    ['Shareholders', 'Board'],
                    ['Board', 'CEO']
                ],
                'levels' => [
                    ['level' => 0,
                     'color' => 'silver'],
                    ['level' => 1,
                     'color' => 'silver']
                ],
                'nodes' => [
                    ['id' => 'Shareholders'],
                    ['id' => 'Board']
                ]
    ]]
]
]);
miloschuman commented 3 years ago

I'm sure you've discovered this by now, but 'modules/sankey' has to come before 'modules/organization'.