/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/usercontrols/graph.ascx.vb
50 строк
1 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
Imports System.Web.UI.DataVisualization.Charting Partial Class UserControls_Graph Inherits System.Web.UI.UserControl Public Property tableName As String Public Property weeks As String Public Property targets As String Public Property kpiColumn As String Public Property kpiName As String Public Property targetColumn As String Public Property graphType As String Public Property Width As Integer Set(value As Integer) Chart1.Width = value End Set Get Return Chart1.Width End Get End Property Public Property Height As Integer Set(value As Integer) Chart1.Height = value End Set Get Return Chart1.Height End Get End Property 'Public Property Palette As ChartColorPalette ' Set(value As ChartColorPalette) ' Chart1.palette = value ' End Set ' Get ' Return Chart1.palette ' End Get 'End Property Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load Response.CacheControl = "no-cache" Select Case graphType Case "PIVOT" Case "UNPIVOT" Chart1.SpecificDataHandler = "~/Handlers/UnpivotGraphData.ashx?params=" & tableName & "|" & weeks & "|" & kpiColumn & "|" & kpiName & "|" & targetColumn & "" End Select End Sub End Class