function ShowBarChart()
{
var ctrlman = m_Map.GetCtrlMan();
var ctrlstate = ctrlman.GetControlState();
var util = m_Map.GetUtility();
var posLL = ctrlstate.GetLLCenter(); // ÁöµµÀÇ Á᫐ ÁÂÇ¥
// Step 1. Get POI Manger
var poiman = ctrlman.GetPOIMan();
var baseman = poiman.CastToBaseManager();
// Step 2. Make POI Group
var group = poiman.FindGroup(100);
if (!group) group = poiman.NewGroup(100);
// Step 2-1. Make POI Style
var gstyle = poiman.FindStyle(1);
if (!gstyle)
{
gstyle = poiman.NewStyle(1); // -1: ¾ÆÀ̵ð ÀÚµ¿ »ý¼º
gstyle.SetGDIFont("±¼¸²", 0, 8);
gstyle.SetFontColor(util.RGBColor(0, 0, 0));
gstyle.SetFontOutColor(util.RGBColor(255, 255, 255));
gstyle.SetBrush(util.RGBColor(255, 255, 255), 0);
gstyle.SetPen(util.RGBColor(0, 0, 0), 1, 0);
}
group.SetStyle(gstyle);
var baritem = group.NewItem(-1);
baritem.SetLonLat(posLL._X, posLL._Y);
baritem.SetTextStyle(0x12);
baritem.SetCaption("BAR Chart");
baritem.SetContents("Contents\nHello");
var bar = baritem.CreateChart_Bar();
var r = Math.round(Math.random() * 255);
var g = Math.round(Math.random() * 255);
var b = Math.round(Math.random() * 255);
bar.SetBrush(util.RGBAColor(r,g,b,100));
bar.SetPen(util.RGBAColor(255,0,0,100), 1);
bar.SetMaxValue(100);
bar.SetMinValue(-100);
bar.SetHeight(80);
var maxcnt = Math.round(Math.random() * 5 + 2);
for (var i = 0; i < maxcnt; i++)
{
var barval = Math.round(Math.random() * 90 + 10);
r = Math.round(Math.random() * 255);
g = Math.round(Math.random() * 255);
b = Math.round(Math.random() * 255);
bar.AddData(-barval-100, 10, 5, util.RGBAColor(r,g,b,255), util.RGBAColor(0,0,0,255), 1);
bar.AddData(barval, 10, 5, util.RGBAColor(r,g,b,255), util.RGBAColor(0,0,0,255), 1);
}
}