private static addItemToBarArray()

in src/visual.ts [468:499]


    private static addItemToBarArray(
        collection: BarRect[],
        barIndex: number,
        start: number,
        end: number,
        fillColor: string,
        strokeColor: string,
        strokeWidth: number,
        formatString: DataViewObjectPropertyIdentifier,
        tooltipInfo: BulletChartTooltipItem[],
        selectionIdBuilder: ISelectionIdBuilder,
        highlight: boolean): void {

        if (!isNaN(start) && !isNaN(end))
            collection.push({
              barIndex,
              start,
              end,
              fillColor,
              strokeColor,
              strokeWidth,
              tooltipInfo: BulletChart.CREATETOOLTIPINFO(tooltipInfo),
              selected: false,
              identity: selectionIdBuilder.createSelectionId(),
              key: (<ISelectionId>(
                selectionIdBuilder
                  .withMeasure(start + " " + end)
                  .createSelectionId()
              )).getKey(),
              highlight: highlight,
            });
    }