Вопрос:
Подскажите, а как прописать настройку для цвета подписей, если 2 размерности?
Кусок в echart не срабатывает:
{
frame: {
h: 2,
w: 3,
x: 7,
y: 1,
},
echart: {
legend: {
top: '87%',
show: true,
textStyle: {
color: 'rgba(4, 4, 4, 1)',
},
},
series: {
label: {
align: 'top',
color: 'black',
position: 'left',
},
},
хAxis: {
axisLabel: {
color: 'black',
},
},
yAxis: {
axisLabel: {
color: 'black',
},
},
},
display: {
headerStyle: {
background: '',
},
},
options: [
'!DisplaySplitLines',
'!DisplayAxisYMarks',
'DisplayTicks',
'DisplayBadgesValue',
'DisplayLegend',
],
dataSource: {
koob: 'mks_1.sbj_1',
style: {
measures: {},
property_form_2: {},
},
xAxis: 'age_groups',
yAxis: 'measures;property_form_2',
measures: [
'uniq(subject_id):uniq_subject_id',
],
dimensions: [
'age_groups',
'property_form_2',
],
},
view_class: '1II.stacked-column',
title: 'По сроку жизни субъекта, лет',
}
Ответ:
Рекомендуеум скорректировать блок кода по примеру ниже:
display: {
headerStyle: {
background: '',
},
},
options: [
'!DisplaySplitLines',
'!DisplayAxisYMarks',
'DisplayTicks',
'DisplayBadgesValue',
'DisplayLegend',
],
echart: {
xAxis: {
axisLabel: {
textStyle: {
color: 'black',
},
},
},
legend: {
top: '87%',
show: true,
textStyle: {
color: 'rgba(4, 4, 4, 1)',
},
},
series: {
label: {
align: 'top',
color: 'black',
position: 'left',
},
},
},