Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set the bar label position for each series in a combo Chart

Veerendra Patil5 hours ago

Hi,

APEX 23.2

I have a combo chart with multi-series. The last in the series is always a line chart. The queries for the chart/series are dynamic.

and the properties are set after the chart load as

// Orientation, Stack, Legend Position, X/Y Labels
           apex.region("chartID").widget().ojChart({
               type: chartType,
               orientation: pParams.orientation,
               stack: pParams.stack,
               stackLabel: pParams.stack,
               hiddenCategories: pHiddenCategories,
               legend: {
                   rendered: pParams.showLegend,
                   position: pParams.legendPosition,
                   backgroundColor: pParams.legendColour
               },
               xAxis: {
                   title: pParams.xAxisLabel
               },
               yAxis: {
                   title: pParams.yAxisLabel,
                   referenceObjects: pParams.refObj,
                   tickLabel: {
                       converter: yAxisConverter,
                       scaling: 'none'
                   }
               },
               styleDefaults: {
                   lineType: pParams.pLineType,
                   dataLabelPosition: pParams.dataLabelPosition
               },
               valueFormats: {
                   label: {
                       scaling: pParams.pValueFormatting
                   }
               }
           });

For the dataLabelPosition – How do I set different values for different series?

For ex the first series (eg bar), I want it to be “outsideBarEdge” and for line chart I want it to be “auto” or “none”. These values are parameterised.

Please suggest.

Thanks,

Comments
Post Details
Added 5 hours ago
1 comment
13 views