Jason94
Jason94

Reputation: 13610

How can I hide labels in my chart?

I've read the doc and its required, but I don't want it :D tried setting it to undefined and removing it but then javascript complains its misssing.

Is there a way to hide it?

Upvotes: 2

Views: 4729

Answers (2)

Sergiy Voznyak
Sergiy Voznyak

Reputation: 121

You can disable it through next option:

Morris.Line({
  hideHover: "always"
});

See JsFiidle

Upvotes: 2

the mad zergling
the mad zergling

Reputation: 282

I don't see a way through the configuration options, however you can easily hide it with css. 'display' is set by the script, but you can set the transparency:

.morris-hover {  
  opacity: 0;
}

seems to work fine for me here: http://jsbin.com/aTirOKU/1/edit

Upvotes: 1

Related Questions