Skip to content

Commit ff993eb

Browse files
committed
updated colours
1 parent 0b2a63d commit ff993eb

File tree

5 files changed

+192
-5
lines changed

5 files changed

+192
-5
lines changed

src/MigrationTools.Telemetery/GetGraphWorkItemMetrics.cs

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,28 +111,41 @@ public async Task<IActionResult> GetGraphWorkItemMetrics_WorkItems(
111111
// Method to generate the graph using OxyPlot
112112
private MemoryStream GenerateGraph(AppInsightsResponse data, string versionLabel)
113113
{
114-
var plotModel = new PlotModel { Title = $"Work Items Processed ({versionLabel})" };
114+
var plotModel = new PlotModel {
115+
Title = $"Work Items Processed ({versionLabel})",
116+
TitleColor = OxyColor.Parse("#2575fc"), // Updated title color as requested
117+
DefaultColors = new List<OxyColor> { OxyColor.Parse("#2575fc") } // Updated default color as requested
118+
119+
};
115120

116121
// Create X and Y axes
117122
plotModel.Axes.Add(new DateTimeAxis
118123
{
119124
Position = AxisPosition.Bottom,
120125
StringFormat = "MM-dd",
121-
Title = "Date"
126+
Title = "Date",
127+
TitleColor = OxyColor.Parse("#2575fc"), // Updated title color as requested
128+
AxislineColor = OxyColor.Parse("#2575fc"), // Updated axis line color as requested
129+
TextColor = OxyColor.Parse("#2575fc"), // Updated text color as requested
130+
TicklineColor = OxyColor.Parse("#2575fc") // Updated tick line color as requested
122131
});
123132
plotModel.Axes.Add(new LinearAxis
124133
{
125134
Position = AxisPosition.Left,
126-
Title = "Work Items Processed"
135+
Title = "Work Items Processed",
136+
TitleColor = OxyColor.Parse("#2575fc"), // Updated title color as requested
137+
AxislineColor = OxyColor.Parse("#2575fc"), // Updated axis line color as requested
138+
TextColor = OxyColor.Parse("#2575fc"), // Updated text color as requested
139+
TicklineColor = OxyColor.Parse("#2575fc") // Updated tick line color as requested
140+
127141
});
128142

129143
// Create a line series to plot the work item data
130144
var series = new LineSeries
131145
{
132146
MarkerType = MarkerType.Circle,
133147
MarkerSize = 4,
134-
MarkerStroke = OxyColors.Purple,
135-
Color = OxyColors.Orange
148+
MarkerStroke = OxyColors.Purple
136149
};
137150

138151
// Generate list of the last 30 days and pad missing days with zero
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<WebPublishMethod>MSDeploy</WebPublishMethod>
8+
<PublishProvider>AzureWebSite</PublishProvider>
9+
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
10+
<LastUsedPlatform>Any CPU</LastUsedPlatform>
11+
<SiteUrlToLaunchAfterPublish>https://migrationtoolstelemetery.azurewebsites.net</SiteUrlToLaunchAfterPublish>
12+
<LaunchSiteAfterPublish>false</LaunchSiteAfterPublish>
13+
<ResourceId>/subscriptions/c2d1c3f0-0945-44b4-a0ba-67c45e9d16ac/resourceGroups/MigrationTools/providers/Microsoft.Web/sites/MigrationToolsTelemetery</ResourceId>
14+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
15+
<ExcludeApp_Data>false</ExcludeApp_Data>
16+
<MSDeployServiceURL>migrationtoolstelemetery.scm.azurewebsites.net:443</MSDeployServiceURL>
17+
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
18+
<SkipExtraFilesOnServer>false</SkipExtraFilesOnServer>
19+
<EnableMsDeployAppOffline>true</EnableMsDeployAppOffline>
20+
<EnableMSDeployBackup>true</EnableMSDeployBackup>
21+
<DeployIisAppPath>MigrationToolsTelemetery</DeployIisAppPath>
22+
</PropertyGroup>
23+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"resourceGroupName": {
6+
"type": "string",
7+
"defaultValue": "MigrationTools",
8+
"metadata": {
9+
"_parameterType": "resourceGroup",
10+
"description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking."
11+
}
12+
},
13+
"resourceGroupLocation": {
14+
"type": "string",
15+
"defaultValue": "northeurope",
16+
"metadata": {
17+
"_parameterType": "location",
18+
"description": "Location of the resource group. Resource groups could have different location than resources."
19+
}
20+
},
21+
"resourceLocation": {
22+
"type": "string",
23+
"defaultValue": "[parameters('resourceGroupLocation')]",
24+
"metadata": {
25+
"_parameterType": "location",
26+
"description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there."
27+
}
28+
}
29+
},
30+
"resources": [
31+
{
32+
"type": "Microsoft.Resources/resourceGroups",
33+
"name": "[parameters('resourceGroupName')]",
34+
"location": "[parameters('resourceGroupLocation')]",
35+
"apiVersion": "2019-10-01"
36+
},
37+
{
38+
"type": "Microsoft.Resources/deployments",
39+
"name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat('MigrationToolAI', subscription().subscriptionId)))]",
40+
"resourceGroup": "[parameters('resourceGroupName')]",
41+
"apiVersion": "2019-10-01",
42+
"dependsOn": [
43+
"[parameters('resourceGroupName')]"
44+
],
45+
"properties": {
46+
"mode": "Incremental",
47+
"template": {
48+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
49+
"contentVersion": "1.0.0.0",
50+
"resources": [
51+
{
52+
"kind": "web",
53+
"name": "MigrationToolAI",
54+
"type": "microsoft.insights/components",
55+
"location": "[parameters('resourceLocation')]",
56+
"properties": {},
57+
"apiVersion": "2015-05-01"
58+
}
59+
]
60+
}
61+
}
62+
}
63+
],
64+
"metadata": {
65+
"_dependencyType": "appInsights.azure"
66+
}
67+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"resourceGroupName": {
6+
"type": "string",
7+
"defaultValue": "MigrationTools",
8+
"metadata": {
9+
"_parameterType": "resourceGroup",
10+
"description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking."
11+
}
12+
},
13+
"resourceGroupLocation": {
14+
"type": "string",
15+
"defaultValue": "northeurope",
16+
"metadata": {
17+
"_parameterType": "location",
18+
"description": "Location of the resource group. Resource groups could have different location than resources."
19+
}
20+
},
21+
"resourceLocation": {
22+
"type": "string",
23+
"defaultValue": "[parameters('resourceGroupLocation')]",
24+
"metadata": {
25+
"_parameterType": "location",
26+
"description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there."
27+
}
28+
}
29+
},
30+
"resources": [
31+
{
32+
"type": "Microsoft.Resources/resourceGroups",
33+
"name": "[parameters('resourceGroupName')]",
34+
"location": "[parameters('resourceGroupLocation')]",
35+
"apiVersion": "2019-10-01"
36+
},
37+
{
38+
"type": "Microsoft.Resources/deployments",
39+
"name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat('migrationtoolstorewe', subscription().subscriptionId)))]",
40+
"resourceGroup": "[parameters('resourceGroupName')]",
41+
"apiVersion": "2019-10-01",
42+
"dependsOn": [
43+
"[parameters('resourceGroupName')]"
44+
],
45+
"properties": {
46+
"mode": "Incremental",
47+
"template": {
48+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
49+
"contentVersion": "1.0.0.0",
50+
"resources": [
51+
{
52+
"sku": {
53+
"name": "Standard_LRS",
54+
"tier": "Standard"
55+
},
56+
"kind": "Storage",
57+
"name": "migrationtoolstorewe",
58+
"type": "Microsoft.Storage/storageAccounts",
59+
"location": "[parameters('resourceLocation')]",
60+
"apiVersion": "2017-10-01"
61+
}
62+
]
63+
}
64+
}
65+
}
66+
],
67+
"metadata": {
68+
"_dependencyType": "storage.azure"
69+
}
70+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"dependencies": {
3+
"storage1": {
4+
"resourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/Microsoft.Storage/storageAccounts/migrationtoolstorewe",
5+
"type": "storage.azure",
6+
"connectionId": "AzureWebJobsStorage"
7+
},
8+
"appInsights1": {
9+
"resourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/microsoft.insights/components/MigrationToolAI",
10+
"type": "appInsights.azure",
11+
"connectionId": "APPLICATIONINSIGHTS_CONNECTION_STRING"
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)