密集间隔的数据标签被隐藏

时间:2015-08-12 09:02:48

标签: highcharts

我的barchart中的某些数据标签未显示:只有一个数据标签显示在类别" Wohnung Zustand"," Wohnumfeld"和#34; Wohn- und Nebenkosten"。

我目前的解决方案是选择smaller font-size

Sub AAA()

'If Workbooks("Source.xlsm").Sheets("Sheet2").Range("A2").Value = Workbooks("Target.xlsm").Sheets("Sheet1").Range("A2").Value Then
'Workbooks("Source.xlsm").Sheets("Sheet2").Range("B2").Value = Workbooks("Target.xlsm").Sheets("Sheet1").Range("C2").Value
Dim a As Long
Dim lastrow As Long
Dim lastcol As Long
Dim source As Worksheet
Dim target As Worksheet

    Set target = Workbooks("Target.xlsm").Sheets("Sheet1")
    Set source = Workbooks("Source.xlsm").Sheets("Sheet2")
    lastrow = source.Range("A" & target.Rows.Count).End(xlUp).Row
    lastcol = target.Cells(2, target.Columns.Count).Column

    target.Activate

For a = 2 To 50

     If source.Range("A" & a).Value = target.Range("A" & a).Value Then

     target.Range("C" & a).Select
     Range(ActiveCell, ActiveCell.Offset(0)).Copy
     source.Range("B" & a).PasteSpecial

     End If

Next a



End Sub

但现在标签难以阅读。我想要一个更大的字体大小和重叠标签,但我的溢出和裁剪设置不起作用。

1 个答案:

答案 0 :(得分:0)

有一个allowOverlap - 设置:chart with overlapping datalabels ..

dataLabels: {
  enabled: true,
  allowOverlap: true,
}