I am trying to install dockprom(https://github.com/stefanprodan/dockprom). I follow the stepsgiven by them but I am getting this errors:
ERROR: for caddy Cannot create container for service caddy: status
code not OK but 500: {"Message":"Unhandled exception: Filesharing has
been cancelled","StackTrace":" en
Docker.ApiServices.Mounting.FileSharing.d__6.MoveNext() en
C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:lĂnea
0\r\n--- Fin del seguimiento de la pila de la ubicaciĂłn anterior
donde se produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en Docker.ApiServices.Mounting.FileSharing.d__4.MoveNext()
en
C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:lĂnea
47\r\n--- Fin del seguimiento de la pila de la ubicaciĂłn anterior
donde se produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
Docker.HttpApi.Controllers.FilesharingController.d__2.MoveNext() en
C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.HttpApi\Controllers\FilesharingController.cs:lĂnea
21\r\n--- Fin del seguimiento de la pila de la ubicaciĂłn anterior
donde se produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
System.Threading.Tasks.TaskHelpersExtensions.d__1`1.MoveNext()\r\n---
Fin del seguimiento de la pila de la ubicaciĂłn anterior donde se
produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
System.Web.Http.Controllers.ApiControllerActionInvoker.d__1.MoveNext()\r\n---
Fin del seguimiento de la pila de la ubicaciĂłn anteCreating grafana
... error
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext()\r\n---
Fin del seguimiento de la pila de la ubicaciĂłn anterior donde se
produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
System.Web.Http.Dispatcher.HttpControllerDispatcher.d__15.MoveNext()"}
And it is not only for caddy, I get same errors for Prometheus, caddy and Alertmanager
Related
I'm trying to identify and handle a specific error that I get as a response from SharePoint rest api, the problem is that the error text depends on the site language.
for example, here is the error in English site:
{
"error": {
"code": "-2147024809, System.ArgumentException",
"message": {
"lang": "en-US",
"value": "Feature '[guid]' for list template '[number]' is not installed in this farm. The operation could not be completed."
}
}
}
and in French site I get:
{
"error": {
"code": "-2147024809, System.ArgumentException",
"message": {
"lang": "fr-FR",
"value": "La fonctionnalité « [guid] » pour le modèle de liste « [number] » n'est pas installée sur cette batterie de serveurs. L'opération n'a pas pu être effectuée."
}
}
}
Is it possible to get the English text regardless of the site language?
I am trying to get angular material working in my angular 4.4.6 app but get an error message in the browser when I try to import the BrowserAnimationsModule.
import { BrowserModule } from '#angular/platform-browser';
import { BrowserAnimationsModule } from '#angular/platform-browser/animations';
imports: [
CommonModule,
HttpModule,
FormsModule,
AngularFontAwesomeModule,
BrowserModule,
BrowserAnimationsModule,
RouterModule.forRoot([
{ path: 'register', component: RegisterComponent },
{ path: 'login', component: LoginComponent },
{ path: 'member-detail/:id', component: MemberDetailComponent },
{ path: 'member-listing', component: MemberListingComponent },
package.json
"dependencies": {
"#angular/animations": "^4.4.6",
"#angular/cdk": "^2.0.0-beta.12",
"#angular/common": "^4.4.6",
"#angular/compiler": "^4.4.6",
"#angular/compiler-cli": "^4.4.6",
"#angular/core": "^4.4.6",
"#angular/forms": "^4.4.6",
"#angular/http": "^4.4.6",
"#angular/material": "^2.0.0-beta.12",
"#angular/platform-browser": "^4.4.6",
"#angular/platform-browser-dynamic": "^4.4.6",
"#angular/platform-server": "^4.4.6",
Error message in browser:
An unhandled exception occurred while processing the request.
NodeInvocationException: document is not defined
ReferenceError: document is not defined
at DefaultDomRenderer2.module.exports.DefaultDomRenderer2.selectRootElement (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:28722:72)
at BaseAnimationRenderer.selectRootElement (C:\Code\winowio_core\winowio_core\Client\dist\main-server.js:19174:106)
at createElement (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:20127:23)
at createViewNodes (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:23093:44)
at createRootView (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:23022:5)
at Object.createProdRootView [as createRootView] (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:23707:12)
at ComponentFactory_.module.exports.ComponentFactory_.create (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:20813:46)
at ComponentFactoryBoundToModule.module.exports.ComponentFactoryBoundToModule.create (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:14230:29)
at ApplicationRef_.module.exports.ApplicationRef_.bootstrap (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:15719:57)
at C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:15502:81
Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance+d__7.MoveNext()
Stack Query Cookies Headers
NodeInvocationException: document is not defined
ReferenceError: document is not defined at DefaultDomRenderer2.module.exports.DefaultDomRenderer2.selectRootElement (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:28722:72) at BaseAnimationRenderer.selectRootElement (C:\Code\winowio_core\winowio_core\Client\dist\main-server.js:19174:106) at createElement (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:20127:23) at createViewNodes (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:23093:44) at createRootView (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:23022:5) at Object.createProdRootView [as createRootView] (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:23707:12) at ComponentFactory_.module.exports.ComponentFactory_.create (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:20813:46) at ComponentFactoryBoundToModule.module.exports.ComponentFactoryBoundToModule.create (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:14230:29) at ApplicationRef_.module.exports.ApplicationRef_.bootstrap (C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:15719:57) at C:\Code\winowio_core\winowio_core\Client\dist\vendor.js:15502:81
Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance+d__7.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance+d__13.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNetCore.NodeServices.NodeServicesImpl+d__10.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.NodeServices.NodeServicesImpl+d__10.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNetCore.NodeServices.NodeServicesImpl+d__10.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNetCore.SpaServices.Prerendering.PrerenderTagHelper+d__29.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner+d__0.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
AspNetCore._Views_Home_Index_cshtml+d__12.MoveNext() in Index.cshtml
+
ViewData["Title"] = "Home Page";
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.Razor.RazorView+d__16.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.Razor.RazorView+d__15.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Microsoft.AspNetCore.Mvc.Razor.RazorView+d__14.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor+d__22.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor+d__21.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.ViewResult+d__26.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+d__19.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+d__24.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResultExecutedContext context)
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+d__22.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+d__17.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+d__15.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Builder.RouterMiddleware+d__4.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+d__6.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware+d__6.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware+d__6.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+d__7.MoveNext()
Ok, I came to this same exact issue.
Go to Views->Home->Index.cshtml and change
<app asp-prerender-module="ClientApp/dist/main-server">Loading...</app>
to:
<app asp-ng2-prerender-module="ClientApp/dist/main-server">Loading...</app>
Here is another stackoverflow question that's related.
I'm trying to parse JSON that I'm getting from an API using SwiftyJSON and it's giving me this error:
Optional(Error Domain=SwiftyJSONErrorDomain Code=901 "Dictionary["data"] failure, It is not an dictionary" UserInfo={NSLocalizedDescription=Dictionary["data"] failure, It is not an dictionary})
The JSON:
{
"status": 200,
"error": "",
"data": {
"cursusses": [
{
"cursus": {
"curId": 1,
"curNaam": "Lightroom Tips & Tricks",
"catId": 1,
"curInfo": "Praktische en korte Tips en Tricks om sneller en prettiger met Lightroom te kunnen werken.",
"curThumbnail": "lr5-tips-en-tricks.jpg"
}
},
{
"cursus": {
"curId": 2,
"curNaam": "Lightroom Fotobewerkingen",
"catId": 1,
"curInfo": "Per video wordt er in deze cursus een nabewerking uitgevoerd op een foto. Een leerzame manier om te zien hoe je in de praktijk foto's kunt nabewerken terwijl je daarnaast veel praktische tips krijgt over het gebruik van Lightroom 5.",
"curThumbnail": "lr5-bewerkingen.jpg"
}
},
{
"cursus": {
"curId": 3,
"curNaam": "Photoshop Fotobewerkingen",
"catId": 2,
"curInfo": "Per video wordt er in deze cursus een nabewerking uitgevoerd op een foto. Een leerzame manier om te zien hoe je in de praktijk foto's kunt nabewerken terwijl je daarnaast veel praktische tips krijgt over het gebruik van Photoshop.",
"curThumbnail": "photoshop-cc.jpg"
}
},
{
"cursus": {
"curId": 4,
"curNaam": "Basiscursus Lightroom 5",
"catId": 1,
"curInfo": "Leer de basisvaardigheden voor het werken met Adobe Photoshop Lightroom. Over het werken met catalogussen, importeren, het selectieproces, de nabewerking en het exporteren.",
"curThumbnail": "basiscursus-lightroom-5.jpg"
}
},
{
"cursus": {
"curId": 5,
"curNaam": "Photofacts Academy",
"catId": 3,
"curInfo": "Toelichting over het gebruiken van de Photofacts Academy website.",
"curThumbnail": "photofacts-academy.jpg"
}
},
{
"cursus": {
"curId": 6,
"curNaam": "Lightroom 5 web module",
"catId": 1,
"curInfo": "Met de Lightroom web module kun je eenvoudig van je foto's een online galerij maken.",
"curThumbnail": "lr5-web-intro.jpg"
}
},
{
"cursus": {
"curId": 7,
"curNaam": "Photoshop Tips & Tricks",
"catId": 2,
"curInfo": "Praktische tips voor het gebruik van Adobe Photoshop CC.",
"curThumbnail": "photoshop-cc-splash.jpg"
}
}
]
}
}
I'm currently trying to use this block of code to parse the data, this function is called in the completionHandler of an Alamofire request:
func succesCurResponse(let response : Response<String, NSError>) {
if let value = response.result.value {
let json = JSON(value)
let error = json["error"].stringValue
print(json["data"].error)
if(error.isEmpty) {
for(var i = 0; i < json["data"]["cursusses"].count; i++) {
let name = json["data"]["cursusses"][i]["cursus"]["curNaam"].stringValue
let id = json["data"]["cursusses"][i]["cursus"]["curId"].intValue
let catId = json["data"]["cursusses"][i]["cursus"]["catId"].intValue
let info = json["data"]["cursusses"][i]["cursus"]["curInfo"].stringValue
let thumbnail = json["data"]["cursusses"][i]["cursus"]["curThumbnail"].stringValue
let newCur = Cursus()
newCur.ID = id
newCur.name = name
newCur.info = info
newCur.thumbnail = thumbnail
}
}
else {
print(error)
}
}
}
Any suggestions?
Sorry, I don't know Swift. But the following Objective-C code will help you to resolve your issue.
Objective-C :
NSArray *cursussesArray = json[#"cursusses"];
for (NSDictionary *singlecursusseDict in cursussesArray) {
NSLog(#"%#", singlecursusseDict);
NSDictionary *cursus = singlecursusseDict[#"cursus"];
}
I give a try in Swift
let cursussesArray:NSArray = json[“cursusses”]
for singlecursusseDict: NSDictionary in cursussesArray {
print(singlecursusseDict)
cursusDict: NSDictionary = json[“cursus”]
print(cursusDict)
}
i've installed the visual studio 2013 today, but i can't create a simple new MVC solution.
Everytime i try to debug it, shows me the error:
"Erro de Servidor no Aplicativo '/'.
Argumento especificado estava fora do intervalo de valores válidos.
Nome do parâmetro: site
Descrição: Ocorreu uma exceção sem tratamento durante a execução da atual solicitação da Web. Examine o rastreamento de pilha para obter mais informações sobre o erro e onde foi originado no código.
Detalhes da Exceção: System.ArgumentOutOfRangeException: Argumento especificado estava fora do intervalo de valores válidos.
Nome do parâmetro: site
Erro de Origem:
Exceção sem tratamento foi gerada durante a execução da atual solicitação da Web. As informações relacionadas à origem e ao local da exceção podem ser identificadas usando-se o rastreamento de pilha de exceção abaixo.
Rastreamento de Pilha:
[ArgumentOutOfRangeException: Argumento especificado estava fora do intervalo de valores válidos.
Nome do parâmetro: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +303
[HttpException (0x80004005): Argumento especificado estava fora do intervalo de valores válidos.
Nome do parâmetro: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9913572
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254"
anyone can help me solve this?
Thanks
You will have to kill the process ...webdev.webserr... in the Windows Task Manager.
I have a highchart bar graph due to the big number of categories.
Categories come in Unicode from json, but it is represented ok.
Some data is not represented ok.
My code:
$(function () {
var categories = ["ANALOGO","ANALOGO KLORNER","A\u00d1ADIR 1\u00aa PIEZA","A\u00d1ADIR RESTO PIEZAS","ARANDELA DE ORO","ARANDELA ZOCALO","CAJITA","CALCINABLE","CALCINABLE DIAMETRO 4","CALCINABLE KLORNER","CARILLA EMPRES","COMPLETA DEFINITIVA","COMPLETA PROVISIONAL","COMPOSTURA","COMPOSTURA PROTESIS","COMPOSTURA SIMPLE","CORONA CIRCONIO","CORONA CIRCONIO SOBRE IMPLANTE","CORONA EMPRESS SIN METAL","CORONA JACKET CERAMICA","CORONA METAL CERAMICA","CORONA PROVISIONAL CEMENTADA","CORONA SOBRE IMPLANTE","CUBETA DE RESINA","ESQUELETICO BILATERAL 1-3 PZAS","ESQUELETICO BILATERAL 3-5 PZAS","ESQUELETICO BILATERAL 5-8 PZAS","ESQUELETICO BILATERAL 8-14 PZAS","ESQUELETICO UNILATERAL 1-3 PZAS","FERULA DE BLANQUEAMIENTO","FERULA DESCARGA","GANCHO UNIDAD","IMPLANTE PROVISIONAL ATORNILLADO","MERYLAND PIEZA","PARCIAL ACRILICO 10 PZAS O M\u00c1S","PARCIAL ACRILICO DE 1-3 PZAS","PARCIAL ACRILICO DE 4 PZAS","PARCIAL ACRILICO DE 5 PZAS","PARCIAL ACRILICO DE 6 PZAS","PARCIAL ACRILICO DE 7 PZAS","PARCIAL ACRILICO DE 8 PZAS","PARCIAL ACRILICO DE 9 PZAS","PARCIAL ACRILICO PROV. 10 PZAS O M\u00c1S","PARCIAL ACRILICO PROV. DE 1-3 PZAS","PARCIAL ACRILICO PROV. DE 4 PZAS","PARCIAL ACRILICO PROV. DE 5 PZAS","PARCIAL ACRILICO PROV. DE 6 PZAS","PARCIAL ACRILICO PROV. DE 7 PZAS","PERNO MU\u00d1ON COLADO","PERNO MU\u00d1ON DOBLE COLADO","PILAR ANGULADO","PROTESIS HIBRIDA","REBASE PROTESIS","REPARACION ARCADA CERAMICA","REPARACION CERAMICA","REPLICA DIAMETRO 5 MM","SOBREDENTADURA CON LOCATOR","SOLDADURA","TORNILLO AVINENT","TORNILLO KLORNER","TORNILLO TITANIO","VARIOS"];
$('#container').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Stacked bar chart'
},
xAxis: {
categories: categories
},
yAxis: {
min: 0,
title: {
text: 'Total fruit consumption'
}
},
legend: {
backgroundColor: '#FFFFFF',
reversed: true
},
plotOptions: {
series: {
stacking: 'normal'
}
},
series: [
{
name:'DENTALZUERA',
data: [
[categories.indexOf("COMPLETA PROVISIONAL"),4],[categories.indexOf("CORONA METAL CERAMICA"),1],
[categories.indexOf("CORONA SOBRE IMPLANTE"),2],[categories.indexOf("FERULA DESCARGA"),1],
[categories.indexOf("VARIOS"),1]
]
},
]
});
});
The problem here is that last category here is 62 (I guess is the index), instead of category number: "VARIOS". I guess it is a bug because it happens with highcharts v.3.0.4. but did not happen with v.3.0.2
See fiddle:
http://jsfiddle.net/Ra6Mc/38/
The worst problem is with some data series, that not all the "needed" category labels are represented:
I don't really know which criteria it choose or where my error is.
http://jsfiddle.net/Ra6Mc/37/
New data:
series: [
{
name:'DENTOTAL SALUD ORAL',
data: [
[categories.indexOf("COMPLETA PROVISIONAL"),4],[categories.indexOf("CUBETA DE RESINA"),2],
[categories.indexOf("PROTESIS HIBRIDA"),1],[categories.indexOf("VARIOS"),2]
]
}
]
Yes, it looks like a bug, reported here. Thanks!
Simple workaround is to use tickPositioner and set pointRange: 1 for series:
tickPositioner: function (min, max) {
var t = [],
interval = 1;
while (min <= max) {
t.push(min);
min += interval;
}
t.push(max)
return t;
}
jsFiddle