How to Display Percentage values on TOP of CCC Bar Chart in CDE (Non-Stacked Bar Chart) - bar-chart

My requirement is to show percentage values on the top of the bar ccc Bar chart (non-stacked), so far I have got the percentages in between the bar charts all I need is to display them on the top.
I have added this function in clickable action and made clickable TRUE
function(scene) { var pctVar = scene.vars.value.percent;
alert(pctVar.label);
}
Then in advance properties I have changed values visible = True and Valuemask= {Value}% so until this I can get values in middle of the bar chart
So what and all I need to do to show the percentages on the TOP of the Bar Charts? Thanks in Advance!

valuesAnchor: Top
Extension points [
label_textMargin: 1
label_textBaseline: bottom
}

Related

To display stacked value within the stacked bar using jqplot

I am using jqplot to display graph sales of month.i used horizontal bar graph for that,i want to display value of each stacked bar within the bar.
I am tried using following code,
this.cfg.seriesDefaults = {
renderer:$.jqplot.BarRenderer,
rendererOptions: {
shadowOffset: 0,
barWidth :'30',
barDirection: 'horizontal',
highlightMouseDown: true
},
pointLabels: {show: true ,
hideZeros: true,
formatString: '%d',
// xpadding : -90
xpadding: 20, ypadding: 50,
// edgeTolerance: -55
location :'w'
}
but it displayed pointlabels within the bar for 1 st stacked region correct value displayed but for last it displayed total of stacked bar.
i want to disaplay each region value within the bar not total.

How to align all textboxes in a groupbox to the left?

I have created this simple address form from devexpress components in MVC view. It consists of two groupboxes - the first is with border for 4 rows. The second is inside first groupbox at last line which consists of 3 elements. The first element is 30px wide, the second 60px and the third should just fill the rest of space so he doesn't have fixed width. The whole box is 250px wide. My problem are spaces between textboxes in second groupbox which I can't get rid of. I want the second textbox to be aligned right behind the first and the third textbox right behind the second which will take all the remaining space. I tried all sort of horizontal alignment but the spaces still persist and I start to be desperate - viz picture belove:
Thank you for your help.
Edit: the code here:
var group1 = settings.Items.AddGroupItem().FormLayoutGroup(1, Unit.Percentage(100), GroupBoxDecoration.Box);
... // other textboxes
var group2 = group1.Items.AddGroupItem().FormLayoutGroup(3, Unit.Percentage(100), GroupBoxDecoration.None);
group2.Items.Add(model => model.AdresaOsobyId.Adresa.Stat.ID).ToLambda(x =>
{
x.TextBox()
x.Width = 30;
x.HideCaption();
});
group2.Items.Add(model => model.AdresaOsobyId.Adresa.Psc).ToLambda(x =>
{
x.HideCaption();
x.TextBox();
x.Width = 60;
});
group2.Items.Add(model => model.AdresaOsobyId.Adresa.Posta).ToLambda(x =>
{
x.HideCaption();
x.TextBox();
});

How to make bar chart not be crushed with a lot of data in google bar chart?

Using a bar chart: https://developers.google.com/chart/interactive/docs/gallery/barchart when you have a lot of data, it crushes the bars to be very thin and the text to overlap each other. What options are there to get the data to render in the container properly (maybe guarantee each bar to be of a certain height if possible)? I want to avoid explicitly setting the height to say "1000px", then looking at the bar chart to determine whether it is scrunched up or not.
You can calculate a height for your BarChart dynamically, based on the number of rows of data in your DataTable:
// set inner height to 30 pixels per row
var chartAreaHeight = data.getNumberOfRows() * 30;
// add padding to outer height to accomodate title, axis labels, etc
var chartHeight = chartAreaHeight + 80;
var chart = new google.visualization.BarChart(document.querySelector('#chart_div'));
chart.draw(data, {
height: chartHeight,
chartArea: {
height: chartAreaHeight
}
});

Bar filled with value of mic activity level

This is the code of a bar being filled with the values of the mic activity level, the problem is when the bar is raising it starts to fill to the right side as well instead of being only moving to the left side.
This is the code:
**micaux** is just the total of mic.activityLevel
**bar** is the borders of the raising bar
**cor2** is the bar that i want to fill
if ( micaux > 0 ) {
soundbox.text = String(micaux);
bar.cor2.x += mic.activityLevel / 1000;
bar.cor2.scaleX += mic.activityLevel /1000; }
I took a printscreen of the app working and what happens:

Google apps script Panels Layout- Set width horizontal panel

I have a horizontal panel containing two vertical panels (1 left, 1 right) When I assign a width to the horizontal panel (say 80%) the left and right vertical panel are glued to their respective sides of the horizontal panel. So there is a gap between the two vertical panels.
How can I make the two panels appear side by side and any extra space be left on the right of them?
Thanks in advance.
Illustration :
function doGet() {
var app = UiApp.createApplication().setTitle('panels');
var hor = app.createHorizontalPanel().setWidth('80%').setHeight('200px').setBorderWidth(2).setStyleAttribute('background', 'yellow');
var vp1 = app.createVerticalPanel().setBorderWidth(5).setWidth('100%').setStyleAttribute('background', 'green');
var vp2 = app.createVerticalPanel().setBorderWidth(5).setWidth('100%').setStyleAttribute('background', 'red');
vp1.add(app.createLabel('panel1').setHeight('150px'))
vp2.add(app.createLabel('panel2').setHeight('150px'))
app.add(hor);
hor.add(vp1).add(vp2)
return app
}
Set the width of the vpanels to 100%