Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8820715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:40:37+00:00 2026-06-14T05:40:37+00:00

I am using Microsoft’s D3 with WPF (not silverlight). I am desperately looking for

  • 0

I am using Microsoft’s D3 with WPF (not silverlight). I am desperately looking for a version of D3 that would allow ,me to hide the legend. I found several examples online, using older versions of D3. When adding the sources of this version to my solution, I lost other functionality I was using – plotting a graph with logarithmic scales. Another version of D3 that was used in an example of a logarithmic scale did not have “hide legend” implemented yet. Apparently, the examples I’ve seen used different versions that are mutually exclusive. Moreover, I am not enough savvi with c# to take one version and convert it to the other.

Would you guys please please please help me and provide a solution that uses any (preferably latest) version of D3 for WPF that makes a ChartPlotter with logarithmic scale and is able to hide the legend?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:40:39+00:00Added an answer on June 14, 2026 at 5:40 am

    The key to this seems to be the LogarithmNumericTicksProvider class. This class alone seems to give you the functionality you need. So you could take that class and import it to the version of D3 you have that has a hiding legend working.

    Your other option, would be to take the most recent stable version of D3, and fix the legend hiding in it. The solution that I found for hiding the legend does not seem to yet be implemented in the stable version, but looks very easy to.

    You can add a new property to the ChartPlotter class for Legend Visibility that should hide and show your legend when setting the property. It looks like this :

    class ChartPlotter {
    ...
    public bool LegendVisible {
      get { return legend.Visibility == Visibility.Visible; }
    
      set { legend.Visibility = value ? Visibility.Visible : Visibility.Hidden; }
    
    }
    }
    

    With this, you can set the LegendVisible property to true or false anywhere you need to in your code and it should show or hide on command. I found this solution Here

    The most stable version of D3 can be found Here. This version implements the LogarithmNumericTicksProvider. This version is the most suitable to use and should be easy to implement the new property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using Microsoft.SqlServer.Management.SqlStudio.Explorer; unable to find this pls assist [update] found the dll's in this
Using Microsoft SQL server 2008 I have a query that is in need of
Using Microsoft SQL Server 2008, let's say there is a table1 that keeps the
Using Microsoft Spy++, I can see that the following windows that belong to a
I am using Microsoft Visual Studio 2010 and C++ language that runs on the
Using Microsoft SQL 2008. I have two tables that I want to select from
Using Microsoft SQL Server. Running a stored procedure that returns 'No column name' as
I'm using Microsoft.Reporting.Webforms version 10 in order to parse an RDLC file and produce
Using Microsoft SQL server manager 2008. Making a stored procedure that will eventually select
using Microsoft.Office.Interop.Excel; Range rng = worksheet.UsedRange; // I found below code but I didn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.