Colours are integral to the story you want to convey with any sort of data visualisation. With the latest release of MongoDB Charts, we have added more control to how you can assign colours to your charts!
Previously, colour assignment of a series were always based on the series order within that chart. However, we may instead want to colour the chart based on the series value.
Some basic scenarios where these different strategies prove useful include:
- Colouring the top 3 series with the colours gold, silver and bronze.
- Colouring the series "Summer" and "Winter" with "Red" and "Blue" respectively, to symbolise the season.
If the above examples did not give it away enough, we will create some beautiful charts using an Olympics dataset to fully understand the capabilities of the new features.
We will start off with a basic single-series chart. These charts usually have a single field encoded to the x and y axes and will display a single colour for the chart. In these charts, we now show a single colour swatch for you to edit. Simple, right?
For more complicated charts with multiple series, we may want to colour the series based on the encoded field itself. These charts are created when multiple fields are encoded to an aggregation channel where the field key is used to build the multi-series chart.
In the above chart, I have a medal tally of the top 10 countries based on medal count. The chart itself is fine, but we could improve this chart with some useful colouring! A notable colour scheme we could apply to this chart is assigning each series to the colour of the medal.
Inside the Color Palette customisation option, you will see that each encoded field is now listed based on the order that they were encoded in. With the colour scheme set to the medal colour, the chart will be a lot easier to convey the original information. Colours assigned to these channels will always have the same colour assigned and will ignore the ordering of these fields.
Assigning chart colours to string data
The final chart that we want to create, involves a chart where the data itself is a String type. With these chart types, the Color Palette will provide options to toggle between the two different colour assignment strategies where:
- 'By Order' will allow you to assign colours by the ordering of the series
- 'By Series' lets you customise the colour for a specific series value
To help streamline the process of assigning colours in the above chart, in the ‘By Order’ menu, I can choose to assign colours based on the value order of the Discipline that appears in the chart. This may be useful if we don't care what the colours are that represent each Discipline. Alternatively, we could assign colours using 'By Series' so that we can be assured that I can represent the Disciplines with an associated colour.
Now that we have created all of our charts using the different ways we can assign colours, we can be confident that the colours in our data visualisations are consistent throughout our dashboard.
Digital Transformation with MongoDB Atlas and Accenture Cloud First: Three Use Cases for Cloud Modernization
Choosing which providers to partner with when moving to the cloud is a critical first step in pivoting to meet this new field of opportunity. Together, MongoDB and Accenture deliver deep expertise, proven success, and the right balance of experience across industries. Here’s how—and where—we can help. Journey to the cloud: Three value-unlocking use cases typically prioritized by CIOs and CTOs Accenture and MongoDB have identified three common use case patterns across industries, each worth examining further: Building out APIs for modern application development Moving from monolith to microservice for modernization Offloading from legacy or mainframe systems These scenarios typically come to the forefront of the CIO/CTO agenda as they aim to accelerate their journey to the cloud and to release gridlock from old but valuable business applications. A common mistake is believing that the business case for this migration is entirely IT-driven. The true motivation must come from understanding that the legacy technology is stunting the ability for applications to keep up with the increasing pace of change in the business. Additionally, and especially for mainframe applications, the labor force segment that knows these business critical applications is rapidly approaching retirement, leaving a critical knowledge gap in supporting and extending these applications. Let’s take a deeper look. 1. Building out APIs for modern application development Innovative applications require businesses to react and adapt quickly. Development needs to be quick, the architecture must be loosely coupled, and the deployment model must have scalability built into its core. Technical challenges facing today’s applications include: Incoming digital requests can vary and follow trends, in an often quick-bursting and even disruptive manner Businesses need to be able to adapt on the fly – and, therefore, so does the data structure Innovation today requires data models that can be extended to meet future demands The weight of these requirements has been exacerbated as businesses become more and more structured for our on-demand world. Mobile applications at a bank, for example, need to be able to service customers in real-time and 24/7. And it’s not just banks—demand volatility is on the rise across industries and customer expectations continue to evolve. The secret sauce in these new applications is to build the data to fit the application – rather than dealing with the constraints of the relational data models of the previous generation applications. With the flexible data structures and ease-of-change with MongoDB, developers can build and adjust the data structures to meet the rapidly evolving needs of new applications, delivering the speed and agility needed to create disruptive change. Furthermore, you can scale out quickly with the horizontal scaling capabilities of the leading NoSQL database, while uniquely still having access to ACID database properties where needed. Finally, with MongoDB Atlas , the fully managed MongoDB solution, the needs for scale-on-demand and ready-to-use secure production infrastructure in Azure, AWS, and Google Cloud, peace of mind has never come easier when preparing for an industry-changing innovation. 2. Moving from monolith to microservice for modernization Not all innovation comes in a brand-new application. In order to innovate with old applications, sometimes they need to be extended in ways that were not contemplated when leading architectures centered around monolithic application configurations and deployments. Many of our clients experience challenges with their application portfolios because they have not kept pace with the rapid evolution of technology, driving one critical business problem: the inability to scale at pace. Digital Decoupling is an Accenture solution designed to extend the life of critical business applications while augmenting them with new functionality – often through the modern development techniques and architecture as described in section 1. Initially, this will mean that there is yet another technology pattern included in the footprint of the business application. However, the difference here is that the transformation from “legacy java” to modern architectures can be accelerated. Once you have experienced the simplicity of data that matches exactly what your application needs, it will be difficult to stop! Diagram A: Monolith to microservices transformation The diagram above (reference Diagram A ) illustrates the historical move to a more ideal data architecture from monolith to microservices. However, in the real world, companies often find completely moving over to a microservice layer to be too expensive or too much effort. That is why over the last 5 years, Accenture has developed its Digital Decoupling approach to solving this problem. More details can be found here . With Accenture’s Smart Data Mover data can be moved from the relational database into MongoDB and code can be substantially ported as-is while simplifying the data access layer, accelerating organizations in their onramp to rapid change and innovation. The size and shape of the new services can adjust from microservices for rapidly evolving functions to coarse-grained services that don’t have much change and don’t warrant further investment. MongoDB is designed to work well as the storage layer of a microservice or API architecture and can mitigate risk during the refactoring phase, so that businesses can meet demands that ebb, flow and ideally grow in traffic. 3. Offloading from legacy or mainframe systems As more and more companies migrate to the cloud, a common (and often painful) use case is the requirement to offload applications from mainframes and other legacy data stores. It is painful for many reasons, most predominantly because no one within the organization has the institutional knowledge required to maintain and operate the legacy application, and because many times the movement of the data from the system involves several complex technical hurdles to implementation. To solve this, Accenture’s Digital Decoupling approach extends to the mainframe as well. This approach within the mainframe offload scenario is located below (reference Diagram B ). Diagram B: Mainframe offload reference architecture with MongoDB Atlas: When transitioning from a legacy or mainframe system, there are several aspects to consider: How will the data and code be migrated? If moving to a more scalable data solution, how will code in triggers and procedures get ported? How will the new data platform solution deliver on required flexibility, scale (and not just for read-only copies of the data) in addition to resilience non-functional requirements? The last point is the pivot of our conversation. To gain a true advantage, most organizations will need to preserve traditional enterprise capabilities, but also meet the needs of a modern day and age where storage is no longer a concern. To help move the data over, Accenture Smart Data Mover can get the job done seamlessly. CDC tools and/or Kafka can also be leveraged for continuous update, if the preferred source of truth for some applications still needs to be the mainframe. Please check out this solutions guide for more information about best practices on offloading from the mainframe with MongoDB. Why MongoDB? MongoDB’s document-based, distributed database provides users with the versatility to build sophisticated applications that can respond and adapt to changing customer demands and market trends. As the leading choice for general-purpose databases, MongoDB reduces time spent on development cycles and empowers developers with flexible schema and the tools they need to innovate. Furthermore, MongoDB’s fully managed database-as-a-service option, MongoDB Atlas , is the only multi-cloud document database available in the market, and delivers the most advanced security and data distribution capabilities of any fully-managed service. MongoDB has also spent years building out a full modernization program to help customers and their architects with their journey to the cloud. This program includes training, tools, and best practices that have been co-developed with System Integrators, especially Accenture. This is why MongoDB is partnering heavily with Accenture in helping customers move to the cloud. Why Accenture Cloud First? Accenture Cloud First is a multi-service group of 70,000 cloud professionals across the globe that brings together the full power and breadth of Accenture’s industry and technology capabilities to help move organizations to the cloud with greater speed and achieve greater value, faster. The Cloud First team combines world-class cloud and cloud native engineering, learning and talent development expertise, deep experience in cloud change management, and cloud-ready operating models with a commitment to responsible business by design. Security, data privacy, responsible use of artificial intelligence, sustainability, and ethics and compliance are built into the fundamental changes Accenture helps companies achieve. How MongoDB and Accenture can help Our clients have taken a deep, insightful look at their application portfolios and uniformly decided that they need to accelerate their migrations to the cloud under the realization that their data center isn’t where they want their employees, i.e. their most precious resource, to spend most of their time. This realization has pushed Cloud Migration and Modernization efforts front and center for the C-Suite. Accenture has developed an end-to-end Value-Led Modernization methodology that analyzes each business case to deliver the most value possible for our clients. We built this methodology in order to be laser-focused on delivering the right outcome: increased value to the organization vs. just doing modernization for modernization’s sake. Core to our methodology is the belief that modernization initiatives should take a lean engineering approach to the work itself while simultaneously enabling new value streams for the business. To enable this dual reality that CIOs and CTOs find themselves in today, we architecturally focus on three tenants: Minimal invasive modernization efforts using our digital decoupling techniques Establishment of an enterprise, event-driven architecture as the core of communication Establishment of a modern data architecture to underpin our new value propositions while simultaneously supporting existing value cases. To remain competitive in today’s ever-changing marketplace, you need to be able to scale quickly and securely while enabling access to one of the business’ most important assets: its data. Together, Accenture and MongoDB have made several investments to date and continue to partner to bring the best to our clients. Accenture and MongoDB have launched another joint solution, our “Modernizer Tool,” to help customers modernize as they migrate to the cloud. The Modernizer tool is an asset that identifies relevant information and speeds up feeding and integration and migration process definition by standard techniques. The tool aims to mitigate data modeling and integration challenges by applying a metadata-driven approach which anticipates key risks. Looking Forward Bottom line? Your organization needs a modern database—one that can allow it the speed and agility to keep up with ever changing business needs. Further investment in modernization today isn’t an option, it’s a necessity to remain competitive, to realize your digital transformation goals and to provide your organization with the foundation necessary to innovate. Accenture and MongoDB will continue to partner in making investments in Cloud Enablement, Cloud Migration and Modernization that will enable you to realize your goals. We look forward to working with our customers on cloud modernization projects in the field. Find out more about the MongoDB & Accenture partnership here .
Hear From the MongoDB World 2022 Diversity Scholars
The MongoDB Diversity Scholarship program is an initiative to elevate and support members of underrepresented groups in technology across the globe. Scholars receive complimentary access to the MongoDB World developer conference in New York, on-demand access to MongoDB University to prepare for free MongoDB certification, and mentorship via an exclusive discussion group. This year at MongoDB World, our newest cohort of scholars got the opportunity to interact with company leadership at a luncheon and also got a chance to share their experience in a public panel discussion at the Community Café. Hear from some of the 2022 scholars, in their own words. Rebecca Hayes, System Analyst at Alliance for Safety and Justice I did an internal transition from managing Grants/Contracts to IT and just finished a data science certificate (Python, Unix/Linux, SQL) through my community college. My inspiration for pursuing STEM was wanting to understand how reality is represented in systems and how data science can be used to change the world. What was your most impactful experience as part of the Diversity Scholarship? Most impactful were the conversations I had with other attendees at the conference. I talked to people from all sectors who were extremely knowledgeable and passionate about shaping the future of databases. The opportunity to hear from MongoDB leaders and then understand how the vision behind the product was being implemented made me feel inspired for my future in STEM. How has the MongoDB World conference inspired you in your learning or your career path? MongoDB World inspired me to understand the real world applications of databases. I left knowing what's possible with a product like MongoDB and the limits of SQL and traditional databases. After the conference, I wrote this article on Medium reflecting on what I learned at the conference. What is your advice to colleagues pursuing STEM and/or on a similar path as you? Embrace what makes you unique. Just because things take time doesn't mean they won't happen. When learning programming and data science, think about how your work relates to the real world and share those thoughts with others. Seek out new perspectives, stay true to yourself, and keep an open mind. Delphine Nyaboke, Junior Software Engineer at Sendy I am passionate about energy in general. My final year project was on solar mini-grid design and interconnection. I have a mission of being at the intersection of energy and AI What inspired me to get into tech is the ability to solve societal problems without necessarily waiting for someone else to do it for you. This can be either in energy or by code. What was your most impactful experience as part of the Diversity Scholarship? My most impactful experience, apart from attending and listening in on the keynotes, was to attend the breakout sessions. They had lovely topics full of learnings and inspiration, including Engineering Culture at MongoDB; Be a Community Leader; Principles of Data Modeling for MongoDB; and Be Nice, But Not Too Nice just to mention but a few. How has the MongoDB World conference inspired you in your learning or your career path? MongoDB World has inspired me to keep on upskilling and being competitive in handling databases, which is a key skill in a backend engineer like myself. I will continue taking advantage of the MongoDB University courses and on-demand courses available thanks to the scholarship. What is your advice to colleagues pursuing STEM and/or on a similar path as you? STEM is a challenging yet fun field. If you’re tenacious enough, the rewards will trickle in soon enough. Get a community to be around, discuss what you’re going through together, be a mentor, get a mentor, and keep pushing forward. We need like-minded individuals in our society even in this fourth industrial revolution, and we are not leaving anyone behind. Video: Watch the panel in its entirety Raja Adil, Student at Cal Poly SLO Currently, I am a software engineer intern at Salesforce. I started self-teaching myself software development when I was a junior in high school during the COVID-19 pandemic, and from there I started doing projects and gaining as much technical experience as I could through internships. Before the pandemic I took my first computer science class, which was taught in C#. At first, I hated it as it looked complex. Slowly, I started to enjoy it more and more, and during the pandemic I started learning Python on my own. I feel blessed to have found my path early in my career. What was your most impactful experience as part of the Diversity Scholarship? My most impactful experience was the network and friends I made throughout the four days I was in New York for MongoDB World. I also learned a lot about the power of MongoDB, as opposed to relational databases, which I often use in my projects. How has the MongoDB World conference inspired you in your learning or your career path? The MongoDB World conference was amazing and has inspired me a ton in my learning path. I definitely want to learn even more about MongoDB as a database, and in terms of a career path, I would love to intern at MongoDB as a software engineer down the line. What is your advice to colleagues pursuing STEM and/or on a similar path as you? My advice would be to network as much as you can and simply make cool projects that others can use. Evans Asuboah, Stetson University I am an international student from Ghana. I was born and raised by my dad, who is a cocoa farmer, and my mum, who is a teacher. I got into tech miraculously, because my country's educational system matches majors to students according to their final high school grades. Initially, I wanted to do medicine, but I was offered computer science. I realized that computer science could actually be the tool to help my community and also use the knowledge to help my dad on the farm. What was your most impactful experience as part of the Diversity Scholarship? The breakout room sessions. As scholars, we had the chance to talk to MongoDB employees, and the knowledge and experiences changed my thoughts and increased my desire to persevere. I have learned never to stop learning and not to give up. How has the MongoDB World conference inspired you in your learning or your career path? Meeting these amazing people, connecting with the scholars, being at the workshops, and talking to the startups at the booths has made me realize the sky is the limit. I dare to dream and believe until I see the results. What is your advice to colleagues pursuing STEM and/or on a similar path as you? 1. Explore MongoDB; 2. You are the only one between you and your dream; 3. Take the initiative and meet people; 4. Never stop learning. Daniel Erbynn, Drexel University I love traveling and exploring new places. I am originally from Ghana, and I got the opportunity to participate in a summer program after high school called Project ISWEST, which introduced me to coding and computer science through building a pong game and building an Arduino circuit to program traffic lights. This made me excited about programming and the possibilities of solving problems in the tech space. What was your most impactful experience as part of the Diversity Scholarship? My most impactful experience was meeting with other students and professionals in the industry, learning from them, making lifelong connections, and getting the opportunity to learn about MongoDB through the MongoDB University courses. How has the MongoDB World conference inspired you in your learning or your career path? This conference has inspired me to learn more about MongoDB and seek more knowledge about cloud technology. What is your advice to colleagues pursuing STEM and/or on a similar path as you? Don’t be afraid to reach out to people you want to learn from, and create projects you are passionate about. Build your skills with MongoDB University's free courses and certifications . Join our developer community to stay up-to-date with the latest information and announcements.