使用rgraph的垂直进度条

时间:2016-06-08 10:40:22

标签: rgraph

我正在使用rgraph图表中的Vertical progress bar

我的输出是
enter image description here

我要做的是以10个数字的倍数调整比例 因此,如果我的数字是6,那么比例应为0,10,20,30 ... 60

我该怎么做?还有其他选择吗?

代码

byte[] logo = BmpToBytes_MemStream(Properties.Resources.gcs_logo);
emailMessage.Attachments.AddFileAttachment("logo.jpg", logo);
emailMessage.Attachments[emailMessage.Attachments.Count - 1].IsInline = true;
emailMessage.Attachments[emailMessage.Attachments.Count - 1].ContentId = "gcs_logo.jpg";

private static byte[] BmpToBytes_MemStream(Bitmap bmp)
{
    byte[] bmpBytes = null;
    using (MemoryStream ms = new MemoryStream())
    {
        // Save to memory using the Jpeg format
        bmp.Save(ms, ImageFormat.Jpeg);

        // read to end
        bmpBytes = ms.GetBuffer();
        bmp.Dispose();
    }

    return bmpBytes;
}

1 个答案:

答案 0 :(得分:1)

如果我理解正确,您可以使用labelsCount选项。

例如

http://www.rgraph.net/fiddle/view.html/vprogress-with-six-labels