Forum Discussion
FICO
6 years agoCommunity Manager
vdl-chart with multiple y-axis
vdl-chart is built ontop Plotly.js, which supports multiple y-axis (https://plot.ly/python/multiple-axes/), but I don't see how to use it. Does vdl-chart support multiple axes?
FICO
6 years agoCommunity Manager
Hi Alex,
we only support a subset of Plotly.js features but if you want to extend the built-in chart to use something we have enabled on vdl-chart then then best way is to use a modifier function.
A short example of how to enable a second y axis:
<script>
function yAxisModifier (config) {
var data = config.data;
var layout = config.layout;
layout.yaxis2 = {
zeroline: false,
title: 'Y Axis 2',
};
return config;
}
</script>
<vdl-chart modifier="=yAxisModifier">
There are lots and lots of settings for the extra features so it will take some time and experimentation to get the desired effect.
The link to the JavaScript version of plotly is here:
Related Content
Related Content
How to display vdl-chart-series bars under lines
<vdl-chart> <vdl-chart-series type="bar" entity="mybars"/> <vdl-chart-series type="line" entity="mylines"/> </vdl-chart> The bars are defined before the lines and are shown that way in the leg...6 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread1View0likes1CommentCan we manage to import multiple DTAB from a single Excel which will have multiple sheet of different DTABs.
Suppose I have two DTABs named A and B. I want to maintain a single Excel workbook containing two sheets named A and B. Whenever I need to import a DTAB, it should be retrieved from the workbook by m...1View0likes3Comments