Giter Site home page Giter Site logo

Comments (12)

k3n avatar k3n commented on September 26, 2024

This appears to be in the source -- is there more to do?

It appears to work, although I have an issue with the x-axis labels on the focus element, but I haven't dug into it fully so it might be an option that I'm neglecting.

from angularjs-nvd3-directives.

cmaurer avatar cmaurer commented on September 26, 2024

can you plnkr or post your example?

from angularjs-nvd3-directives.

k3n avatar k3n commented on September 26, 2024

The issue is that the focus element's x-axis isn't using my xAxisTickFormat attribute / method, though it is for the main line chart. I'll plnkr it up if you need more info.

from angularjs-nvd3-directives.

cmaurer avatar cmaurer commented on September 26, 2024

Please. That will help me see whats happening.

from angularjs-nvd3-directives.

k3n avatar k3n commented on September 26, 2024

Here you go:

http://plnkr.co/edit/MQR0VHSivGtQAIxwhOkn?p=preview

Notice the x-axis for the line chart is formatted as m/d/y, but in the focus area it is unformatted.

from angularjs-nvd3-directives.

cmaurer avatar cmaurer commented on September 26, 2024

Apparently I left out the x2Axis attributes completely. I haven't finished implementing this one yet (high-maintenance wife and 3 kids). Is this something you need immediately?

from angularjs-nvd3-directives.

cmaurer avatar cmaurer commented on September 26, 2024

It was actually quicker that I thought. Just pushed the x2Axis configuration and updated the example in the examples directory.

from angularjs-nvd3-directives.

k3n avatar k3n commented on September 26, 2024

Nah, no rush....I hacked the code with this and it's working for my needs:

chart.x2Axis.tickFormat(function(d){ return d3.time.format('%-m/%-d/%y')(new Date(d)); });

Thanks for the quick attention to the matter though! I tried to implement x2Axis properly, but there's clearly some things I don't understand about the conventions yet because I couldn't get it to work.

from angularjs-nvd3-directives.

k3n avatar k3n commented on September 26, 2024

Oh sweet, so quick I missed the GH notification that you'd replied again. Thanks!!

from angularjs-nvd3-directives.

cmaurer avatar cmaurer commented on September 26, 2024

No worries. It was quick, let me know if you encounter anything.

Thanks,
Chris

from angularjs-nvd3-directives.

dennishu001 avatar dennishu001 commented on September 26, 2024

How can I display line plus chart WITHOUT focus? It seems that when I set the type to linePlusBarChart it will always display the chart with focus.

from angularjs-nvd3-directives.

Naveenbc avatar Naveenbc commented on September 26, 2024

Is there a way to remove focus chart from line plus bar chart?

Thank you in advance

from angularjs-nvd3-directives.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.